<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222"><meta name="generator" content="Hexo 6.1.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pace/1.2.4/themes/green/pace-theme-minimal.css">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/pace/1.2.4/pace.min.js" integrity="sha256-gqd7YTjg/BtfqWSwsJOvndl0Bxc8gFImLEkXQT8+qj0=" crossorigin="anonymous"></script>

<script class="next-config" data-name="main" type="application/json">{"hostname":"liukairui.me","root":"/","images":"/images","scheme":"Muse","darkmode":false,"version":"8.10.1","exturl":false,"sidebar":{"position":"left","display":"hide","padding":18,"offset":12},"copycode":true,"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":true,"pangu":true,"comments":{"style":"tabs","active":"valine","storage":true,"lazyload":false,"nav":null,"activeClass":"valine"},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"},"path":"/search.xml","localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false}}</script><script src="/js/config.js"></script>

    <meta name="description" content="本文介绍了Manjaro-KDE桌面版的安装，polybar+i3 的配置">
<meta property="og:type" content="article">
<meta property="og:title" content="Manjaro - KDE - i3wm - PolyBar 配置笔记">
<meta property="og:url" content="http://liukairui.me/article/Manjaro-KDE-i3wm-PolyBar%E4%BD%BF%E7%94%A8%E9%85%8D%E7%BD%AE%E5%85%A8%E6%8C%87%E5%8D%97/">
<meta property="og:site_name" content="LiuKairui Website">
<meta property="og:description" content="本文介绍了Manjaro-KDE桌面版的安装，polybar+i3 的配置">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://img-blog.csdnimg.cn/20200817184812508.png#pic_center">
<meta property="og:image" content="https://img-blog.csdnimg.cn/20200817193711501.png#pic_center">
<meta property="article:published_time" content="2020-10-30T16:00:17.000Z">
<meta property="article:modified_time" content="2021-10-18T06:44:13.576Z">
<meta property="article:author" content="Liu Kairui">
<meta property="article:tag" content="Linux">
<meta property="article:tag" content="Manjaro">
<meta property="article:tag" content="KDE">
<meta property="article:tag" content="i3wm">
<meta property="article:tag" content="PolyBar">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://img-blog.csdnimg.cn/20200817184812508.png#pic_center">


<link rel="canonical" href="http://liukairui.me/article/Manjaro-KDE-i3wm-PolyBar%E4%BD%BF%E7%94%A8%E9%85%8D%E7%BD%AE%E5%85%A8%E6%8C%87%E5%8D%97/">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"http://liukairui.me/article/Manjaro-KDE-i3wm-PolyBar%E4%BD%BF%E7%94%A8%E9%85%8D%E7%BD%AE%E5%85%A8%E6%8C%87%E5%8D%97/","path":"article/Manjaro-KDE-i3wm-PolyBar使用配置全指南/","title":"Manjaro - KDE - i3wm - PolyBar 配置笔记"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>Manjaro - KDE - i3wm - PolyBar 配置笔记 | LiuKairui Website</title>
  

  <script src="/js/third-party/analytics/baidu-analytics.js"></script>
  <script async src="https://hm.baidu.com/hm.js?ea07bceb8f5fa721da2ebf01833faa32"></script>



<div class="nindexBK">
<div class="nindexBKC"></div>
<div class="nindex">
  <h1>Hey👋</h1>
  <p style="font-weight: 500; font-size: 2.2em">欢迎访问Liu Kairui的个人站.</p>
  <p>
      我是一个来自重庆的在校大学生, 偏爱于前端技术<!--与OS设计-->, 偶尔使用 JS / Go 进行轻量项目开发, 欢迎访问我的
      <a href="https://github.com/KairuiLiu" target="_blank"><i class="fab fa-github-alt"></i> GitHub</a> .
  </p>
  <p>
      这个网站主要用来存储学习 / 瞎搞的笔记, 同时提供了邮件、图床等服务. 对于一些自认为有趣的<a href="javascript:;" id="myProj">项目</a>, 我也会将项目介绍, 文档, 甚至是设计指南发布在这里.
  </p>
  <ul>
    <li><p><a href="/artrank/" target="_blank">ArtRank</a>: 基于Node.JS的PageRank文献管理推荐系统</p></li>
    <li><p><a href="/gooj/" target="_blank">GoOJ</a>: 基于Golang的高校在线评测系统</p></li>
    <li><p><a href="/projects/" target="_blank">更多 <i class="fas fa-angle-right"></i></a></p></li>

  </ul>
  <p>
      可以在这些平台找到我: 
      <a href="https://www.zhihu.com/people/liu-kai-rui-18" target="_blank">知乎</a>,
      <a href="https://space.bilibili.com/33238144" target="_blank">bilibili</a>
      和
      <a href="https://www.coolapk.com/u/805314?from=qr" target="_blank">酷安</a>.
  </p>

  <p>
      下滑即可进入博客 <i class="fas fa-arrow-down"></i>
  </p>
</div>
</div>  

 
<script>
  var OriginTitile = document.title;
  var titleTime;
  document.addEventListener("visibilitychange", function() {
    if (document.hidden) {
      document.title = "谢谢离开 | " + OriginTitile;
      clearTimeout(titleTime);
    } else {
      document.title = "欢迎归来 | " + OriginTitile;
      titleTime = setTimeout(function() {
        document.title = OriginTitile;
      }, 2000);
    }
  });
</script>


<script>
  function checkIndex(){
    let nindexItems = [[".nindexBK","display","block","none"],[".headband","display","none","block"],["div.toggle.sidebar-toggle","visibility","hidden","visible"]]; // ,["button.darkmode-toggle","visibility","hidden","visible"]];
    let isIndex = new RegExp("^(\/){0,1}(index){0,1}(\.html){0,1}(/)*$").test(location.pathname);
    let backCanvas = document.querySelector(".nindexBK");
    nindexItems.dispShift = function (stat){this.forEach((e) => {try{document.querySelector(e[0]).style[e[1]]=e[2+stat];}catch{}})}
    if(isIndex){
      nindexItems.dispShift(0);
      window.onscroll=function(){
        if(document.documentElement.scrollTop>backCanvas.offsetHeight*1.05){
          nindexItems.dispShift(1);window.onscroll=null;
        }
      }
      document.querySelector("#myProj").onclick=()=>{
        let projlist = document.querySelector(".nindex>ul");
        projlist.className.indexOf("ulactive")==-1?projlist.classList.add("ulactive"):projlist.classList.remove("ulactive")
      }
    }else nindexItems.dispShift(1);
  }
  checkIndex();
</script>

<!--<script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>-->

  <noscript>
    <link rel="stylesheet" href="/css/noscript.css">
  </noscript>
<link rel="alternate" href="/atom.xml" title="LiuKairui Website" type="application/atom+xml">
<style>.darkmode--activated{--body-bg-color:#282828;--content-bg-color:#333;--card-bg-color:#555;--text-color:#ccc;--blockquote-color:#bbb;--link-color:#ccc;--link-hover-color:#eee;--brand-color:#ddd;--brand-hover-color:#ddd;--table-row-odd-bg-color:#282828;--table-row-hover-bg-color:#363636;--menu-item-bg-color:#555;--btn-default-bg:#222;--btn-default-color:#ccc;--btn-default-border-color:#555;--btn-default-hover-bg:#666;--btn-default-hover-color:#ccc;--btn-default-hover-border-color:#666;--highlight-background:#282b2e;--highlight-foreground:#a9b7c6;--highlight-gutter-background:#34393d;--highlight-gutter-foreground:#9ca9b6}.darkmode--activated img{opacity:.75}.darkmode--activated img:hover{opacity:.9}.darkmode--activated code{color:#69dbdc;background:0 0}button.darkmode-toggle{z-index:9999}.darkmode-ignore,img{display:flex!important}</style></head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <p class="site-title">LiuKairui Website</p>
      <i class="logo-line"></i>
    </a>
      <p class="site-subtitle" itemprop="description">要有信仰</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu">
        <li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li>
        <li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li>
        <li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fas fa-hashtag fa-fw"></i>标签</a></li>
        <li class="menu-item menu-item-收藏夹"><a href="/favorites/" rel="section"><i class="fab fa-gratipay fa-fw"></i>收藏夹</a></li>
        <li class="menu-item menu-item-留言板"><a href="/messageBoard/" rel="section"><i class="fab fa-facebook-messenger fa-fw"></i>留言板</a></li>
        <li class="menu-item menu-item-项目"><a href="/projects/" rel="section"><i class="fa fa-satellite fa-fw"></i>项目</a></li>
        <li class="menu-item menu-item-图床"><a href="http://img.liukairui.me/" rel="noopener" target="_blank"><i class="fa fa-bed fa-fw"></i>图床</a></li>
        <li class="menu-item menu-item-云ide"><a href="http://vsc.liukairui.me/" rel="noopener" target="_blank"><i class="fas fa-code fa-fw"></i>云IDE</a></li>
        <li class="menu-item menu-item-about"><a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a></li>
        <li class="menu-item menu-item-邮箱"><a href="http://mail.liukairui.me/mail" rel="noopener" target="_blank"><i class="fas fa-envelope-open-text fa-fw"></i>邮箱</a></li>
        <li class="menu-item menu-item-rss"><a href="/atom.xml" rel="section"><i class="fa fa-rss fa-fw"></i>RSS</a></li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup"><div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off" maxlength="80"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close" role="button">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div class="search-result-container no-result">
  <div class="search-result-icon">
    <i class="fa fa-spinner fa-pulse fa-5x"></i>
  </div>
</div>

    </div>
  </div>

</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E4%B9%8B%E5%89%8D%E7%9A%84%E5%87%86%E5%A4%87"><span class="nav-number">1.</span> <span class="nav-text">0. 安装之前的准备</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#manjaro-kde%E7%9A%84%E5%AE%89%E8%A3%85"><span class="nav-number">2.</span> <span class="nav-text">1.Manjaro-KDE的安装</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%B8%8B%E8%BD%BD%E7%B3%BB%E7%BB%9F"><span class="nav-number">2.1.</span> <span class="nav-text">1.1 下载系统</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%88%B6%E4%BD%9C%E5%90%AF%E5%8A%A8u%E7%9B%98"><span class="nav-number">2.2.</span> <span class="nav-text">1.2 制作启动U盘</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E7%B3%BB%E7%BB%9F%E5%89%8D%E7%9A%84bios%E8%AE%BE%E7%BD%AE"><span class="nav-number">2.3.</span> <span class="nav-text">1.3 安装系统前的BIOS设置</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%AD%A3%E5%BC%8F%E5%AE%89%E8%A3%85%E7%B3%BB%E7%BB%9F"><span class="nav-number">2.4.</span> <span class="nav-text">1.4 正式安装系统</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%8D%A2%E6%BA%90"><span class="nav-number">2.5.</span> <span class="nav-text">1.5 换源</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6"><span class="nav-number">2.6.</span> <span class="nav-text">1.6 安装软件</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E4%B8%AD%E6%96%87%E8%BE%93%E5%85%A5%E6%B3%95"><span class="nav-number">2.6.1.</span> <span class="nav-text">1.6.1 中文输入法</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AEzsh"><span class="nav-number">2.6.2.</span> <span class="nav-text">1.6.2 安装与配置zsh</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%AE%89%E8%A3%85"><span class="nav-number">2.6.2.1.</span> <span class="nav-text">安装</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%AE%89%E8%A3%85oh-my-zsh"><span class="nav-number">2.6.2.2.</span> <span class="nav-text">安装oh-my-zsh</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6"><span class="nav-number">2.6.2.3.</span> <span class="nav-text">安装插件</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E4%B8%BB%E9%A2%98"><span class="nav-number">2.6.2.4.</span> <span class="nav-text">安装主题</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AE%89%E8%A3%85vim"><span class="nav-number">2.6.3.</span> <span class="nav-text">1.6.3 安装Vim</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AE%89%E8%A3%85tim%E4%BC%BC%E4%B9%8Eqq%E5%BE%88%E4%B8%8D%E5%A5%BD%E7%94%A8"><span class="nav-number">2.6.4.</span> <span class="nav-text">1.6.4 安装Tim(似乎QQ很不好用)</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E5%BE%AE%E4%BF%A1"><span class="nav-number">2.6.5.</span> <span class="nav-text">1.6.5 安装微信</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E7%BB%88%E7%AB%AF%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E5%99%A8ranger"><span class="nav-number">2.6.6.</span> <span class="nav-text">1.6.6 安装终端文件浏览器Ranger</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#wps%E4%B8%AD%E6%96%87%E7%89%88"><span class="nav-number">2.6.7.</span> <span class="nav-text">1.6.7 wps中文版</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#libreoffice"><span class="nav-number">2.6.8.</span> <span class="nav-text">1.6.8 libreoffice</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90"><span class="nav-number">2.6.9.</span> <span class="nav-text">1.6.9 网易云音乐</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#chrome"><span class="nav-number">2.6.10.</span> <span class="nav-text">1.6.10 chrome</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#typora"><span class="nav-number">2.6.11.</span> <span class="nav-text">1.6.12 Typora</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#flameshot"><span class="nav-number">2.6.12.</span> <span class="nav-text">1.6.13 flameshot</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#timeshift"><span class="nav-number">2.6.13.</span> <span class="nav-text">1.6.14 timeshift</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#vscode"><span class="nav-number">2.6.14.</span> <span class="nav-text">1.6.15 vscode</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85kde%E4%B8%BB%E9%A2%98%E7%AD%89"><span class="nav-number">2.7.</span> <span class="nav-text">1.7 安装KDE主题等</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E7%BE%8E%E5%8C%96%E6%A1%8C%E9%9D%A2"><span class="nav-number">2.8.</span> <span class="nav-text">1.8 美化桌面</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#kde%E4%B8%8B%E7%9A%84%E5%85%B6%E4%BB%96%E9%85%8D%E7%BD%AE"><span class="nav-number">2.9.</span> <span class="nav-text">1.9 KDE下的其他配置</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E9%81%87%E5%88%B0-%E8%A6%81%E8%A7%A3%E9%94%81%E8%AF%B7%E8%BE%93%E5%85%A5%E9%BB%98%E8%AE%A4%E5%AF%86%E9%92%A5%E7%8E%AF%E7%9A%84%E5%AF%86%E7%A0%81"><span class="nav-number">2.9.1.</span> <span class="nav-text">1.9.1 遇到
要解锁，请输入默认密钥环的密码</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%BE%93%E5%85%A5%E5%AF%86%E7%A0%81%E7%9A%84%E6%97%B6%E5%80%99%E6%98%BE%E7%A4%BA%E5%AF%86%E7%A0%81"><span class="nav-number">2.9.2.</span> <span class="nav-text">1.9.2 输入密码的时候显示密码</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%BF%AB%E9%80%9F%E5%90%AF%E5%8A%A8%E5%99%A8-albert"><span class="nav-number">2.9.3.</span> <span class="nav-text">1.9.3 快速启动器 Albert</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E4%BD%8D%E5%9B%BE%E5%9B%BE%E6%A0%87%E8%A2%AB%E7%A6%81%E7%94%A8"><span class="nav-number">2.9.4.</span> <span class="nav-text">1.9.4 安装位图图标被禁用</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%88%AA%E5%9B%BE%E5%B7%A5%E5%85%B7%E6%8E%A8%E8%8D%90"><span class="nav-number">2.9.5.</span> <span class="nav-text">1.9.5 截图工具推荐</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%98%BE%E7%A4%BA%E6%9C%AC%E6%9C%BA%E4%BF%A1%E6%81%AF%E5%91%BD%E4%BB%A4"><span class="nav-number">2.9.6.</span> <span class="nav-text">1.9.6 显示本机信息命令</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%88%87%E6%8D%A2esc%E4%B8%8Ecapslock"><span class="nav-number">2.9.7.</span> <span class="nav-text">1.9.7 切换ESC与CapsLock</span></a></li></ol></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#i3wm%E9%85%8D%E7%BD%AE-polybar%E7%9A%84%E9%85%8D%E7%BD%AE"><span class="nav-number">3.</span> <span class="nav-text">2. i3wm配置 + Polybar的配置</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#i3wm-%E6%9C%80%E5%9F%BA%E6%9C%AC%E7%9A%84%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95"><span class="nav-number">3.1.</span> <span class="nav-text">2.1 i3wm 最基本的使用方法</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8i3"><span class="nav-number">3.1.1.</span> <span class="nav-text">2.1.2 使用i3</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%89%93%E5%BC%80%E8%99%9A%E6%8B%9F%E7%BB%88%E7%AB%AF%E5%92%8C%E7%A7%BB%E5%8A%A8%E4%BD%8D%E7%BD%AE"><span class="nav-number">3.1.1.1.</span> <span class="nav-text">2.1.2.1 打开虚拟终端和移动位置</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%94%B9%E5%8F%98%E5%AE%B9%E5%99%A8%E5%B8%83%E5%B1%80"><span class="nav-number">3.1.1.2.</span> <span class="nav-text">2.1.2.2 改变容器布局</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%8A%8A%E4%B8%80%E4%B8%AA%E7%AA%97%E5%8F%A3%E5%88%87%E6%8D%A2%E5%88%B0%E5%85%A8%E5%B1%8F%E6%A8%A1%E5%BC%8F"><span class="nav-number">3.1.1.3.</span> <span class="nav-text">2.1.2.3 把一个窗口切换到全屏模式</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%89%93%E5%BC%80%E5%85%B6%E4%BB%96%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F"><span class="nav-number">3.1.1.4.</span> <span class="nav-text">2.1.2.4 打开其他应用程序</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%85%B3%E9%97%AD%E7%AA%97%E5%8F%A3"><span class="nav-number">3.1.1.5.</span> <span class="nav-text">2.1.2.5 关闭窗口</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8workspace"><span class="nav-number">3.1.1.6.</span> <span class="nav-text">2.1.2.6 使用WorkSpace</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E7%A7%BB%E5%8A%A8%E4%B8%80%E4%B8%AAwindow%E5%88%B0%E5%8F%A6%E4%B8%80%E4%B8%AAworkspace"><span class="nav-number">3.1.1.7.</span> <span class="nav-text">2.1.2.7
移动一个window到另一个workspace</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E8%B0%83%E6%95%B4%E5%AE%B9%E5%99%A8%E5%A4%A7%E5%B0%8F%E8%B0%83%E6%95%B4%E5%AE%B9%E5%99%A8%E5%A4%A7%E5%B0%8F"><span class="nav-number">3.1.1.8.</span> <span class="nav-text">2.1.2.8 调整容器大小调整容器大小</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%87%8D%E5%90%AF"><span class="nav-number">3.1.1.9.</span> <span class="nav-text">2.1.2.9 重启</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%80%80%E5%87%BAi3"><span class="nav-number">3.1.1.10.</span> <span class="nav-text">2.1.2.10 退出i3</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#section"><span class="nav-number">3.1.1.11.</span> <span class="nav-text">2.1.2.11</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%A0%91"><span class="nav-number">3.1.2.</span> <span class="nav-text">2.1.3 树</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%A0%91%E6%98%AF%E7%94%B1%E5%AE%B9%E5%99%A8%E7%BB%84%E6%88%90%E7%9A%84"><span class="nav-number">3.1.2.1.</span> <span class="nav-text">2.1.3.1 树是由容器组成的</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%AE%9A%E4%BD%8D%E5%92%8Csplit-containers"><span class="nav-number">3.1.2.2.</span> <span class="nav-text">2.1.3.2定位和Split Containers</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E8%81%9A%E7%84%A6%E4%BA%8E%E7%88%B6%E5%AE%B9%E5%99%A8"><span class="nav-number">3.1.2.3.</span> <span class="nav-text">2.1.3.3 聚焦于父容器</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%9A%90%E5%BC%8F%E5%AE%B9%E5%99%A8"><span class="nav-number">3.1.2.4.</span> <span class="nav-text">2.1.3.4 隐式容器</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E9%85%8D%E7%BD%AEi3"><span class="nav-number">3.1.3.</span> <span class="nav-text">2.1.4 配置i3</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%A4%87%E6%B3%A8"><span class="nav-number">3.1.3.1.</span> <span class="nav-text">2.1.4.1 备注</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%AD%97%E4%BD%93"><span class="nav-number">3.1.3.2.</span> <span class="nav-text">2.1.4.2 字体</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%94%AE%E7%9B%98%E7%BB%91%E5%AE%9A"><span class="nav-number">3.1.3.3.</span> <span class="nav-text">2.1.4.3 键盘绑定</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%BC%A0%E6%A0%87%E7%BB%91%E5%AE%9A"><span class="nav-number">3.1.3.4.</span> <span class="nav-text">2.1.4.4 鼠标绑定</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%99%90%E5%88%B6%E6%B5%AE%E5%8A%A8%E7%AA%97%E5%8F%A3%E7%9A%84%E5%A4%A7%E5%B0%8F"><span class="nav-number">3.1.3.5.</span> <span class="nav-text">2.1.4.7 限制浮动窗口的大小</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%B7%A5%E4%BD%9C%E5%8C%BA%E7%9A%84%E5%AE%9A%E4%BD%8D"><span class="nav-number">3.1.3.6.</span> <span class="nav-text">2.1.4.8 工作区的定位</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%96%B0%E5%AE%B9%E5%99%A8%E7%9A%84%E5%B8%83%E5%B1%80%E6%A8%A1%E5%BC%8F"><span class="nav-number">3.1.3.7.</span> <span class="nav-text">2.1.4.9 新容器的布局模式</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%96%B0%E7%AA%97%E5%8F%A3%E7%9A%84%E8%BE%B9%E6%A1%86%E9%A3%8E%E6%A0%BC"><span class="nav-number">3.1.3.8.</span> <span class="nav-text">2.1.4.10 新窗口的边框风格</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%9A%90%E8%97%8F%E9%9D%A0%E8%BF%91%E5%B1%8F%E5%B9%95%E8%BE%B9%E7%BC%98%E7%9A%84%E8%BE%B9%E6%A1%86"><span class="nav-number">3.1.3.9.</span> <span class="nav-text">2.1.4.11 隐藏靠近屏幕边缘的边框</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E6%8C%87%E5%AE%9A%E7%AA%97%E5%8F%A3%E7%9A%84%E4%BB%BB%E6%84%8F%E5%91%BD%E4%BB%A4for-window"><span class="nav-number">3.1.3.10.</span> <span class="nav-text">2.1.4.12 指定窗口的任意命令（for
window）</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E4%B8%8D%E6%8A%8A%E7%84%A6%E7%82%B9%E6%94%BE%E5%9C%A8%E6%96%B0%E5%BB%BA%E7%AA%97%E5%8F%A3"><span class="nav-number">3.1.3.11.</span> <span class="nav-text">2.1.4.13 不把焦点放在新建窗口</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%8F%98%E9%87%8F"><span class="nav-number">3.1.3.12.</span> <span class="nav-text">2.1.4.14 变量</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#i3wm%E7%9A%84%E9%85%8D%E7%BD%AE"><span class="nav-number">3.2.</span> <span class="nav-text">2.2 i3wm的配置</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-1"><span class="nav-number">3.2.1.</span> <span class="nav-text">安装</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%9C%80%E8%A6%81%E7%9A%84%E8%BD%AF%E4%BB%B6"><span class="nav-number">3.2.1.1.</span> <span class="nav-text">需要的软件</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4"><span class="nav-number">3.2.1.2.</span> <span class="nav-text">安装步骤</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E5%AD%97%E4%BD%93"><span class="nav-number">3.2.1.2.1.</span> <span class="nav-text">1.安装字体</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E9%9C%80%E8%A6%81%E7%9A%84%E5%8C%85"><span class="nav-number">3.2.1.2.2.</span> <span class="nav-text">2.安装需要的包</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E9%85%8D%E7%BD%AE"><span class="nav-number">3.2.1.2.3.</span> <span class="nav-text">3.配置</span></a></li></ol></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98"><span class="nav-number">3.2.1.3.</span> <span class="nav-text">遇到的问题</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#%E4%BE%9D%E8%B5%96"><span class="nav-number">3.2.1.3.1.</span> <span class="nav-text">1.依赖</span></a></li></ol></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%BF%AB%E6%8D%B7%E9%94%AE"><span class="nav-number">3.2.2.</span> <span class="nav-text">快捷键</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#%E5%9F%BA%E7%A1%80"><span class="nav-number">3.2.2.0.1.</span> <span class="nav-text">基础</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E8%BD%AF%E4%BB%B6"><span class="nav-number">3.2.2.0.2.</span> <span class="nav-text">软件</span></a></li></ol></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%87%AA%E5%AE%9A%E4%B9%89%E9%85%8D%E7%BD%AE"><span class="nav-number">3.2.3.</span> <span class="nav-text">自定义配置</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%85%8D%E7%BD%AE%E5%BF%AB%E6%8D%B7%E9%94%AE"><span class="nav-number">3.2.3.1.</span> <span class="nav-text">1. 配置快捷键</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E9%85%8D%E7%BD%AE%E8%83%8C%E6%99%AF%E5%9B%BE"><span class="nav-number">3.2.3.2.</span> <span class="nav-text">2. 配置背景图</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%B8%B8%E7%94%A8%E8%BD%AF%E4%BB%B6"><span class="nav-number">3.2.4.</span> <span class="nav-text">常用软件</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#i3wm-%E8%81%94%E7%BD%91"><span class="nav-number">3.3.</span> <span class="nav-text">2.3 i3wm 联网</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#polybar%E7%9A%84%E5%AE%89%E8%A3%85%E4%B8%8E%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8example%E9%85%8D%E7%BD%AE"><span class="nav-number">3.4.</span> <span class="nav-text">2.4
Polybar的安装与尝试使用example配置</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#polybar%E7%9A%84%E4%BD%BF%E7%94%A8"><span class="nav-number">3.4.1.</span> <span class="nav-text">Polybar的使用</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#example%E7%A4%BA%E4%BE%8B%E4%BD%BF%E7%94%A8"><span class="nav-number">3.4.2.</span> <span class="nav-text">Example示例使用</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#polybar%E7%9A%84%E4%B8%BB%E9%A2%98%E9%85%8D%E7%BD%AEpolybar-themes"><span class="nav-number">3.5.</span> <span class="nav-text">2.5
Polybar的主题配置(polybar-themes)</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E4%B8%BB%E9%A2%98%E4%B8%8B%E8%BD%BD"><span class="nav-number">3.5.1.</span> <span class="nav-text">主题下载</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E9%85%8D%E7%BD%AE%E5%AD%97%E4%BD%93"><span class="nav-number">3.5.2.</span> <span class="nav-text">配置字体</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AD%97%E4%BD%93-1"><span class="nav-number">3.5.3.</span> <span class="nav-text">字体</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E4%BB%A5polybar-5%E4%B8%BA%E4%BE%8B"><span class="nav-number">3.5.4.</span> <span class="nav-text">以polybar-5为例</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E9%85%8D%E7%BD%AEpolybar-5"><span class="nav-number">3.5.5.</span> <span class="nav-text">配置(polybar-5)</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%BA%94%E7%94%A8polybar-themes%E4%B8%BB%E9%A2%98%E6%97%B6%E7%9A%84%E4%B8%80%E4%BA%9B%E7%BB%8F%E9%AA%8C%E4%B9%8B%E8%B0%88"><span class="nav-number">3.6.</span> <span class="nav-text">2.6
应用polybar-themes主题时的一些经验之谈</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#mpd%E7%9A%84%E9%85%8D%E7%BD%AE"><span class="nav-number">3.7.</span> <span class="nav-text">2.7 mpd的配置</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%9D%87%E8%A1%A1%E5%99%A8"><span class="nav-number">3.7.1.</span> <span class="nav-text">均衡器</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#mpc"><span class="nav-number">3.7.2.</span> <span class="nav-text">MPC</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%A4%9A%E5%AA%92%E4%BD%93%E9%94%AE"><span class="nav-number">3.7.3.</span> <span class="nav-text">多媒体键</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E9%94%AE%E6%98%A0%E5%B0%84"><span class="nav-number">3.7.4.</span> <span class="nav-text">键映射</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%96%B0%E7%BB%88%E7%AB%AF"><span class="nav-number">3.8.</span> <span class="nav-text">2.8 新终端</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E5%A4%87%E4%BB%BD%E6%82%A8%E7%9A%84%E6%96%87%E4%BB%B6dotfile%E9%A1%B9%E7%9B%AE"><span class="nav-number">4.</span> <span class="nav-text">3.备份您的文件(dotfile项目)</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E4%BC%98%E9%9B%85%E7%9A%84%E6%B8%85%E9%99%A4manjaro%E5%8F%8C%E7%B3%BB%E7%BB%9F%E7%94%A8%E6%88%B7"><span class="nav-number">5.</span> <span class="nav-text">4.
优雅的清除Manjaro(双系统用户)</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E4%BC%98%E7%A7%80%E7%9A%84%E6%95%99%E7%A8%8B%E7%BD%91%E7%AB%99%E4%B8%8E%E8%A7%86%E9%A2%91"><span class="nav-number">6.</span> <span class="nav-text">优秀的教程网站与视频</span></a></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Liu Kairui"
      src="/images/avatar.jpg">
  <p class="site-author-name" itemprop="name">Liu Kairui</p>
  <div class="site-description" itemprop="description">LiuKairui Persional Website</div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/archives/">
          <span class="site-state-item-count">45</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
          <a href="/categories/">
        <span class="site-state-item-count">24</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
          <a href="/tags/">
        <span class="site-state-item-count">53</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author site-overview-item animated">
      <span class="links-of-author-item">
        <a href="https://github.com/KairuiLiu" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;KairuiLiu" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:tclkr@live.com" title="E-Mail → mailto:tclkr@live.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://qm.qq.com/cgi-bin/qm/qr?k=oaf3ToOlN17hr5sHV98bT8qxsNYGaw5L&noverify=0" title="QQ → https:&#x2F;&#x2F;qm.qq.com&#x2F;cgi-bin&#x2F;qm&#x2F;qr?k&#x3D;oaf3ToOlN17hr5sHV98bT8qxsNYGaw5L&amp;noverify&#x3D;0" rel="noopener" target="_blank"><i class="fab fa-qq fa-fw"></i>QQ</a>
      </span>
      <span class="links-of-author-item">
        <a href="/atom.xml" title="RSS → &#x2F;atom.xml"><i class="fa fa-rss fa-fw"></i>RSS</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://liukairui.blog.csdn.net/" title="CSDN → https:&#x2F;&#x2F;liukairui.blog.csdn.net" rel="noopener" target="_blank"><i class="fab fa-cuttlefish fa-fw"></i>CSDN</a>
      </span>
      <span class="links-of-author-item">
        <a href="http://liukairui.cc/" title="国内站点 → http:&#x2F;&#x2F;liukairui.cc" rel="noopener" target="_blank"><i class="fa fa-globe fa-fw"></i>国内站点</a>
      </span>
  </div>
  <div class="cc-license site-overview-item animated" itemprop="license">
    <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" class="cc-opacity" rel="noopener" target="_blank"><img src="https://cdnjs.cloudflare.com/ajax/libs/creativecommons-vocabulary/2020.11.3/assets/license_badges/small/by_nc_sa.svg" alt="Creative Commons"></a>
  </div>


  <div class="links-of-blogroll site-overview-item animated">
    <div class="links-of-blogroll-title"><i class="fa fa-link fa-fw"></i>
      友情链接
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="https://paste.ubuntu.com/" title="https:&#x2F;&#x2F;paste.ubuntu.com&#x2F;" rel="noopener" target="_blank">Ubuntu Pastebin</a>
        </li>
        <li class="links-of-blogroll-item">
          <a href="https://send.firefox.com/" title="https:&#x2F;&#x2F;send.firefox.com&#x2F;" rel="noopener" target="_blank">Firefox Send</a>
        </li>
        <li class="links-of-blogroll-item">
          <a href="https://jkwzs.cn/" title="https:&#x2F;&#x2F;jkwzs.cn&#x2F;" rel="noopener" target="_blank">南花醉笔丶の个人博客</a>
        </li>
        <li class="links-of-blogroll-item">
          <a href="https://ywrby.cn/" title="https:&#x2F;&#x2F;ywrby.cn&#x2F;" rel="noopener" target="_blank">Ywrby个人博客</a>
        </li>
    </ul>
  </div>

        </div>
      </div>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button" aria-label="返回顶部">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://liukairui.me/article/Manjaro-KDE-i3wm-PolyBar%E4%BD%BF%E7%94%A8%E9%85%8D%E7%BD%AE%E5%85%A8%E6%8C%87%E5%8D%97/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.jpg">
      <meta itemprop="name" content="Liu Kairui">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="LiuKairui Website">
      <meta itemprop="description" content="LiuKairui Persional Website">
    </span>
    
    <span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
      <meta itemprop="name" content="Manjaro - KDE - i3wm - PolyBar 配置笔记 | LiuKairui Website">
      <meta itemprop="description" content="本文介绍了Manjaro-KDE桌面版的安装，polybar+i3 的配置">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          Manjaro - KDE - i3wm - PolyBar 配置笔记
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2020-10-31 00:00:17" itemprop="dateCreated datePublished" datetime="2020-10-31T00:00:17+08:00">2020-10-31</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E7%9E%8E%E6%90%9E/" itemprop="url" rel="index"><span itemprop="name">瞎搞</span></a>
        </span>
          ，
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/%E7%9E%8E%E6%90%9E/Linux/" itemprop="url" rel="index"><span itemprop="name">Linux</span></a>
        </span>
    </span>

  
    <span id="/article/Manjaro-KDE-i3wm-PolyBar%E4%BD%BF%E7%94%A8%E9%85%8D%E7%BD%AE%E5%85%A8%E6%8C%87%E5%8D%97/" class="post-meta-item leancloud_visitors" data-flag-title="Manjaro - KDE - i3wm - PolyBar 配置笔记" title="阅读次数">
      <span class="post-meta-item-icon">
        <i class="far fa-eye"></i>
      </span>
      <span class="post-meta-item-text">阅读次数：</span>
      <span class="leancloud-visitors-count"></span>
    </span>
  
  <span class="post-meta-item">
    
    <span class="post-meta-item-icon">
      <i class="far fa-comment"></i>
    </span>
    <span class="post-meta-item-text">Valine：</span>
  
    <a title="valine" href="/article/Manjaro-KDE-i3wm-PolyBar%E4%BD%BF%E7%94%A8%E9%85%8D%E7%BD%AE%E5%85%A8%E6%8C%87%E5%8D%97/#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/article/Manjaro-KDE-i3wm-PolyBar%E4%BD%BF%E7%94%A8%E9%85%8D%E7%BD%AE%E5%85%A8%E6%8C%87%E5%8D%97/" itemprop="commentCount"></span>
    </a>
  </span>
  
  

<script>
    CONFIG.hostname = location.hostname;
</script>
    <span class="post-meta-break"></span>
    <span class="post-meta-item" title="本文字数">
      <span class="post-meta-item-icon">
        <i class="far fa-file-word"></i>
      </span>
      <span class="post-meta-item-text">本文字数：</span>
      <span>34k</span>
    </span>
    <span class="post-meta-item" title="阅读时长">
      <span class="post-meta-item-icon">
        <i class="far fa-clock"></i>
      </span>
      <span class="post-meta-item-text">阅读时长 &asymp;</span>
      <span>31 分钟</span>
    </span>
</div>

            <div class="post-description">本文介绍了Manjaro-KDE桌面版的安装，polybar+i3 的配置</div>
        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <p>==本文全部内容几乎没有作者原创，全文为多篇带佬文章拼接而成，作以备份，勿喷!!!==</p>
<h1 id="安装之前的准备">0. 安装之前的准备</h1>
<p>需要一个U盘以及一个能制作启动盘的电脑。<br />
<strong>如果您准备搞双系统或者准备重装双系统，请先阅读最后一节 4.
优雅的清除Manjaro(双系统用户)</strong></p>
<h1 id="manjaro-kde的安装">1.Manjaro-KDE的安装</h1>
<blockquote>
<p>1.1-1.8的绝大部分内容来自<a
target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/114296129">知乎文章</a></p>
</blockquote>
<p>==想要获得更好的阅读体验，可以查看知乎原文，但是在转载的时候进行了修改，建议两边都阅读==</p>
<p>Manjaro是当前Linux发行版排名第一(第二??)的系统，而KDE是一个可玩性比较高的桌面。<br />
去manjaro官网下载系统，官方提供三种桌面环境，笔者都体验过，目前觉得KDE最合心意，功能最多，用起来也最顺手，对新手也友好，推荐各位使用。<br />
<strong>Xfce桌面</strong>是最为轻量的官方版本，系统占用很小，你可以尝试给家里面的老电脑装一个xfce，但是缺点也很明显，桌面可定制性最差，一开始我装的就是xfce，然后因为它的环境太简陋了，所以就转向了KDE<br />
<strong>KDE</strong>是三者之中可玩性最高，功能最强大的桌面环境，系统占用也不大，对于各位的主力机来说，我觉得这个大可不必在意。<br />
<strong>Gnome</strong>：3.36以后的Gnome功能加了好多，但还是老问题：各种各样的扩展导致桌面不稳定，不建议入手Gnome版本，就算你是Gnome老用户，我还是强烈建议你使用KDE<br />
<strong>注意</strong>：这里只针对Manjaro定制的Gnome，并不是所有发行版的Gnome都这样<br />
另外DDE之前我做过推荐，但是DDE对于WiFi的支持太差，不建议使用</p>
<h2 id="下载系统">1.1 下载系统</h2>
<p>去<a target="_blank" rel="noopener" href="https://manjaro.org/">Manjaro官网</a>下载系统：选择"Try
Manjaro download"，选择橙色按钮 "Get KDE Plasma 20.0.3" 下载即可</p>
<h2 id="制作启动u盘">1.2 制作启动U盘</h2>
<p>下载iso文件之后，使用 rufus
将其写入到U盘中，网上比较旧的攻略会有dd模式写入的说法，现在没有这个选项了，直接写入就可以，注意写入之后你的U盘可见空间会变为几MB，莫惊慌<br />
<img
src="https://img-blog.csdnimg.cn/20200817164948557.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> <strong>关于恢复U盘空间的方法</strong><br />
当然这样U盘里的Manjaro安装文件就没了。右键"计算机" - 管理 - 存储磁盘 -
找到你的U盘 - 对所有的分区(方块)右键 - 删除卷 -
最后得到一个叫做为分配的黑色块 - 右键 - 新建简单卷 - 一路下一步即可</p>
<h2 id="安装系统前的bios设置">1.3 安装系统前的BIOS设置</h2>
<p>插入U盘 - 重启 - 进入BIOS界面 - 关闭Secure Boot和Lanuch
CSM(有选项就关闭，没有就不管) - 选择U盘第一启动顺序</p>
<h2 id="正式安装系统">1.4 正式安装系统</h2>
<p>从U盘启动后会看到如下界面<br />
<img
src="https://img-blog.csdnimg.cn/20200817170249466.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
<ol type="1">
<li>选择lang - 去最下面找中文 - 然后选 zh-cn(简体中文)<br />
</li>
<li>选择driver -
如果你的电脑是Nvida的独显，那么选择nonfree(使用闭源驱动)，其余选择free
(如果你确定你选择的是对的还是进不去系统，考虑是主板的ACPI问题，例如神船笔记本的1050系列卡，大厂的一般没问题)<br />
</li>
<li>选择boot然后进入一个临时的桌面，由于国内网络条件不好，请断网，选择安装
<img
src="https://img-blog.csdnimg.cn/20200817170845274.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> 在时间设置中选择亚洲 -
上海，键盘默认，到分区之后选择手动分区，如图 <img
src="https://img-blog.csdnimg.cn/20200817171956901.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> <img
src="https://img-blog.csdnimg.cn/20200817170936704.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /><br />
</li>
</ol>
<ul>
<li>对于 Windows+Linux
双系统而且双系统共用一个盘，选择Windows的EFI分区(一般是你看到的磁盘列表第一个，FAT分区，100-300MB大小的)
- 右键 - ==不要改大小== - ==<strong>内容选择保留</strong>== -
<strong>==挂载点选择/boot/EFI==</strong> -
==<strong>标记选择boot</strong>==</li>
<li>对于 Windows+Linux
双系统而且双系统分别在两个盘的，选择Windows所在硬盘，选择的EFI分区(一般是你看到的磁盘列表第一个，FAT分区，100-300MB大小的)
- 右键 - ==不要改大小== - ==<strong>内容选择保留</strong>== -
<strong>==挂载点选择/boot/EFI==</strong> -
==<strong>标记选择boot</strong>==，再切换到装Linux的盘中，选择新建分区表，新建的时候选择gpt分区
<img
src="https://img-blog.csdnimg.cn/20200817172049285.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> 会显示一个空闲分区<br />
</li>
<li>对于单系统用户，不用管</li>
</ul>
<p>之后进行正式分区操作(选择空闲分区 - 创建)</p>
<ol type="1">
<li>boot分区，2G(确实是大了) <img
src="https://img-blog.csdnimg.cn/20200817172134433.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></li>
<li>创建根分区，10-20G <img
src="https://img-blog.csdnimg.cn/20200817172210201.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center" /></li>
<li>创建交换分区，如图，挂载点必须是linuxswap <img
src="https://img-blog.csdnimg.cn/20200817172254861.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> 交换分区大小如下</li>
</ol>
<table>
<thead>
<tr class="header">
<th>物理内存</th>
<th>交换分区</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>&lt;= 4G</td>
<td>至少4G</td>
</tr>
<tr class="even">
<td>4~16G</td>
<td>至少8G</td>
</tr>
<tr class="odd">
<td>16G~64G</td>
<td>至少16G</td>
</tr>
<tr class="even">
<td>64G~256G</td>
<td>至少32G</td>
</tr>
</tbody>
</table>
<ol start="4" type="1">
<li>创建home，大小就是剩下的全部空间(但是还是建议留下来一点空闲) <img
src="https://img-blog.csdnimg.cn/20200817173310231.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" />
选择下一步，创建用户与密码，下一步，选择第一个，不要预装办公套件 -下一步
- 安装 - 完成后勾选重启 - 重启进入系统</li>
</ol>
<h2 id="换源">1.5 换源</h2>
<ol type="1">
<li><p>换pacman F12 打开下拉终端，复制 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> pacman-mirrors -i -c China -m rank</code></pre>
用<code>Ctrl+Shift+V</code>
粘贴，运行，看到又一个延迟，找到最低的，然后子啊弹出框只勾选哪一个，选多了会降低速度(如果有几个差不多的，优先选稳定的企业源例如huawei的那个)</p></li>
<li><p>换ArchLinuxCN源，这里推荐中科大的，清华的翻车过一次 运行
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">nano</span> /etc/pacman.conf</code></pre> 用键盘向下，在文末添加 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token punctuation">[</span>archlinuxcn<span class="token punctuation">]</span>
SigLevel <span class="token operator">=</span> Optional TrustedOnly
Server <span class="token operator">=</span> https://mirrors.ustc.edu.cn/archlinuxcn/<span class="token variable">$arch</span></code></pre>
然后<code>Ctrl+X</code>退出，执行</p>
<p><pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> pacman -Syyu <span class="token operator">&amp;&amp;</span> <span class="token function">sudo</span> pacman -S archlinuxcn-keyring</code></pre> 更新系统，==<strong>重启</strong>==</p></li>
</ol>
<h2 id="安装软件">1.6 安装软件</h2>
<p>安装软件可以使用进入系统后左下角manjaro菜单中的<code>添加/删除软件</code>这实际上是Pacman的，但是还是建议再装两个(你可以理解为应用商店)<code>yay</code>和<code>yaourt</code></p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> pacman -S yay
pacman -S yaourt</code></pre>
<h3 id="中文输入法">1.6.1 中文输入法</h3>
<p>尝试过搜狗，百度，谷歌拼音，rime<br />
前两个严格按照规则安装失败了，于是推荐谷歌拼音和rime<br />
首先要知道Mangaro下有两个知名的输入法管理工具<code>fcitx</code>和<code>Ibus</code>，我推荐用<code>ibus</code>，但是还是建议配置好<code>fcitx</code>作为备用</p>
<ol type="1">
<li>安装谷歌拼音 <pre class="language-bash" data-language="bash"><code class="language-bash">yay -S fcitx-im kcm-fcitx fcitx-googlepinyin</code></pre> 新建文件 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">nano</span> ~/.xprofile</code></pre> 输入内容：
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">export</span> <span class="token assign-left variable">GTK_IM_MODULE</span><span class="token operator">=</span>fcitx
<span class="token builtin class-name">export</span> <span class="token assign-left variable">QT_IM_MODULE</span><span class="token operator">=</span>fcitx
<span class="token builtin class-name">export</span> <span class="token assign-left variable"><span class="token environment constant">XMODIFIERS</span></span><span class="token operator">=</span><span class="token string">"@im=fcitx"</span></code></pre></li>
<li>使用ibus下的rime <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span>  pacman -S ibus
<span class="token function">sudo</span> yay -S ibus-qt
<span class="token function">sudo</span> pacman -S  ibus-rime</code></pre> 添加配置文件 ~/.xprofile
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">export</span> <span class="token assign-left variable">GTK_IM_MODULE</span><span class="token operator">=</span>ibus
<span class="token builtin class-name">export</span> <span class="token assign-left variable"><span class="token environment constant">XMODIFIERS</span></span><span class="token operator">=</span>@im<span class="token operator">=</span>ibus
<span class="token builtin class-name">export</span> <span class="token assign-left variable">QT_IM_MODULE</span><span class="token operator">=</span>ibus
ibus-daemon -d -x</code></pre> 重启 - 右键输入法 - 首选项 - 自己修改快捷键 -
排列选择排列方向:水平 - 选择输入法标签 - 添加 - 中文 - Rime - 添加 -
重启 -
随便找个地方切换到Rime输入，会发现候选词有中文，<code>Ctrl+~</code>,选择明月拼音[简化字]
<strong>完事</strong></li>
<li><a target="_blank" rel="noopener" href="https://sspai.com/post/55699">Rime 详细配置</a>
之后，你可以<a
target="_blank" rel="noopener" href="https://www.jianshu.com/p/300bbe1602d4">为rime导入搜狗词库</a>(我准备自己养词库)</li>
</ol>
<h3 id="安装与配置zsh">1.6.2 安装与配置zsh</h3>
<blockquote>
<p>zsh原称为Z
Shell。也是一种shell，兼容最常用的bash这种shell的命令和操作，并且有很多增强，超强的订制性。查来查去，bash虽然很标准，但是自己日常的话还是不要太偏执，力求简单方便的工具更好，所以就玩弄起了zsh。超漂亮又简单,也很好上手。</p>
</blockquote>
<h4 id="安装">安装</h4>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> pacman -S <span class="token function">zsh</span></code></pre>
<p>切换 <pre class="language-bash" data-language="bash"><code class="language-bash">chsh -s /usr/bin/zsh</code></pre> 之后因为需要链接github于是先修改hosts<br />
打开hosts <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">nano</span> /etc/hosts</code></pre> 把这段话复制到下面 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token comment"># GitHub Start</span>
<span class="token number">151.101</span>.76.133 raw.githubusercontent.com
<span class="token comment"># GitHub End</span></code></pre></p>
<h4 id="安装oh-my-zsh">安装oh-my-zsh</h4>
<p>(失败重新输入命令) <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">wget</span> https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - <span class="token operator">|</span> <span class="token function">sh</span></code></pre></p>
<h4 id="安装插件">安装插件</h4>
<p>安装插件<code>autojump</code> <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> pacman -S autojump</code></pre>
安装<code>zsh-syntax-highlighting</code>：提供命令高亮 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">git</span> clone https://github.com/zsh-users/zsh-syntax-highlighting.git <span class="token variable">$&#123;ZSH_CUSTOM<span class="token operator">:-</span>~<span class="token operator">/</span>.oh-my-zsh<span class="token operator">/</span>custom&#125;</span>/plugins/zsh-syntax-highlighting</code></pre>
安装autosuggestions：记住你之前使用过的命令 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">git</span> clone git://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions</code></pre>
安装incr：再也不用先ls在粘贴文件名了，看下效果： <img
src="https://img-blog.csdnimg.cn/20200817180735670.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> 去<a
target="_blank" rel="noopener" href="https://mimosa-pudica.net/zsh-incremental.html">incr官方</a>网站下载，假设保存在了~目录下，接着执行：</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">mkdir</span> ~/.oh-my-zsh/custom/plugins/incr
<span class="token function">mv</span> ~/incr-0.2.zsh ~/.oh-my-zsh/custom/plugins/incr</code></pre>
<p>安装thefuck：帮你更加高效地学习linux命令 <pre class="language-bash" data-language="bash"><code class="language-bash">pip <span class="token function">install</span> --user thefuck</code></pre>
输错命令不要慌，输入fuck即可帮你更正 <img
src="https://img-blog.csdnimg.cn/20200817180923140.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
<p>如果下载太慢： <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">mkdir</span> ~/.pip
<span class="token function">nano</span> ~/.pip/pip.conf</code></pre> 写入如下内容 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token punctuation">[</span>global<span class="token punctuation">]</span>
index-url <span class="token operator">=</span> https://pypi.tuna.tsinghua.edu.cn/simple
<span class="token punctuation">[</span>install<span class="token punctuation">]</span>
trusted-host<span class="token operator">=</span>mirrors.aliyun.com</code></pre>
这样就永久地修改了用户级别的pip下载源<br />
<strong>启用所有插件</strong> <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">nano</span> ~/.zshrc</code></pre>
将<code>plugins=(git)</code>改为: <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token assign-left variable">plugins</span><span class="token operator">=</span><span class="token punctuation">(</span>git zsh-syntax-highlighting zsh-autosuggestions <span class="token function">sudo</span> extract autojump<span class="token punctuation">)</span></code></pre>
这个sudo是oh-my-zsh自带的插件，功能是在你输入的命令的开头添加sudo
，方法是双击Esc<br />
extract也是自带插件，不用再去记不同文件的解压命令，方法是extract
+你要解压的文件名<br />
在下面那句： <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">source</span> <span class="token variable">$ZSH</span>/oh-my-zsh.sh</code></pre> 下面输入： <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">source</span> ~/.oh-my-zsh/custom/plugins/incr/incr*.zsh</code></pre> 在文件末尾输入：
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">eval</span> <span class="token variable"><span class="token variable">$(</span>thefuck --alias<span class="token variable">)</span></span></code></pre> 打开konsole执行： <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">source</span> ~/.zshrc</code></pre></p>
<h4 id="安装主题">安装主题</h4>
<p>有好多主题，但是我懒，用比较优秀的主题,配置结果如图 <img
src="https://img-blog.csdnimg.cn/20200817181553839.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
<ol type="1">
<li><a
target="_blank" rel="noopener" href="https://github.com/romkatv/powerlevel10k#manual-font-installation">点此</a>进入项目的readme，会自动跳转到字体下载小节，下载安装四个字体，打开Konsle
- 设置 - 编辑配置方案 - 外观 - 字体 - 选择 - MesloLGS NF</li>
<li><a
target="_blank" rel="noopener" href="https://github.com/romkatv/powerlevel10k#oh-my-zsh">点此</a>进入项目的readme，会自动跳转到安装小节，当然我复制了一份
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">git</span> clone --depth<span class="token operator">=</span><span class="token number">1</span> https://gitee.com/romkatv/powerlevel10k.git <span class="token variable">$&#123;ZSH_CUSTOM<span class="token operator">:-</span>$HOME<span class="token operator">/</span>.oh-my-zsh<span class="token operator">/</span>custom&#125;</span>/themes/powerlevel10k</code></pre> 配置 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">nano</span> ~/.zshrc</code></pre> 找到<code>Set ZSH_THEME</code>,修改为
<pre class="language-bash" data-language="bash"><code class="language-bash">Set <span class="token assign-left variable">ZSH_THEME</span><span class="token operator">=</span><span class="token string">"powerlevel10k/powerlevel10k"</span></code></pre>
重启终端会进入配置界面，如果没有进入就或者想重新配置可以输入<code>p10k configure</code>
想要半透明？ Konsle - 设置 - 编辑配置方案 - 外观 - 获取新的... -
搜索下载 nordic 应用</li>
</ol>
<h3 id="安装vim">1.6.3 安装Vim</h3>
<p>详见<a
target="_blank" rel="noopener" href="https://blog.csdn.net/Liukairui/article/details/107392243">这篇文章</a>，太长了放不下</p>
<h3 id="安装tim似乎qq很不好用">1.6.4 安装Tim(似乎QQ很不好用)</h3>
<pre class="language-bash" data-language="bash"><code class="language-bash">yay -S deepin-wine-tim</code></pre>
<p>安装过程中出现选择输入n就好<br />
为了让tim能接收到图片，需要禁用ipv6<br />
手动禁用： <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">sh</span> -c <span class="token string">'echo 1 >> /proc/sys/net/ipv6/conf/wlp3s0/disable_ipv6'</span></code></pre> 开机禁用： <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">vim</span> /etc/default/grub</code></pre> 修改：
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token assign-left variable">GRUB_CMDLINE_LINUX_DEFAULT</span><span class="token operator">=</span><span class="token string">"quiet splash"</span></code></pre> 为： <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token assign-left variable">GRUB_CMDLINE_LINUX_DEFAULT</span><span class="token operator">=</span><span class="token string">"ipv6.disable=1 quiet  splash"</span></code></pre> 自动切换deepin-wine环境
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sh</span> /opt/deepinwine/apps/Deepin-Tim/run.sh -d</code></pre></p>
<h3 id="安装微信">1.6.5 安装微信</h3>
<pre class="language-bash" data-language="bash"><code class="language-bash">yay -S deepin-wine-wechat</code></pre>
<h3 id="安装终端文件浏览器ranger">1.6.6 安装终端文件浏览器Ranger</h3>
<pre class="language-bash" data-language="bash"><code class="language-bash">yay -S ranger</code></pre>
<figure>
<img
src="https://img-blog.csdnimg.cn/20200817182558374.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" />
<figcaption aria-hidden="true">在这里插入图片描述</figcaption>
</figure>
<h3 id="wps中文版">1.6.7 wps中文版</h3>
<p>想要英文版把后面那个包去掉（不建议用wps，经常性卡死）
<pre class="language-bash" data-language="bash"><code class="language-bash">yay -S wps-office wps-office-mui-zh-cn</code></pre></p>
<h3 id="libreoffice">1.6.8 libreoffice</h3>
<p>如果你安装时没有装的话（建议） <pre class="language-bash" data-language="bash"><code class="language-bash">yay -S libreoffice</code></pre>
其下libreoffice-fresh相当于是beta版，libreoffice-still相当于是stable版</p>
<h3 id="网易云音乐">1.6.9 网易云音乐</h3>
<pre class="language-bash" data-language="bash"><code class="language-bash">yay -S netease-cloud-music</code></pre>
<h3 id="chrome">1.6.10 chrome</h3>
<pre class="language-bash" data-language="bash"><code class="language-bash">yay -S google-chrome</code></pre>
<p>打开后右键浏览器标签栏，取消选择使用系统栏和边框 ### 1.6.11
百度网盘</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">yay -S baidunetdisk</code></pre>
<h3 id="typora">1.6.12 Typora</h3>
<p>最舒适的md编辑器 <pre class="language-bash" data-language="bash"><code class="language-bash">yay -S typora</code></pre></p>
<h3 id="flameshot">1.6.13 flameshot</h3>
<p>最强大的截图工具 当你的tim/微信截图不好用的时候，用这个
<pre class="language-bash" data-language="bash"><code class="language-bash">yay -S flameshot</code></pre></p>
<h3 id="timeshift">1.6.14 timeshift</h3>
<p>强大好用的备份、回滚系统工具</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">yay -S timeshift</code></pre>
<h3 id="vscode">1.6.15 vscode</h3>
<p>去<code>添加/删除应用</code>找到<code>code-insiders</code>,安装</p>
<p><strong>还有一个软件见原文，不敢转，</strong><a
target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/114296129">这里</a>第9节</p>
<h2 id="安装kde主题等">1.7 安装KDE主题等</h2>
<p>如果在安装主题的时候下载<strong>特别慢</strong>，方法是：<br />
首先换成联通或者电信的网络，<br />
去<code>添加/删除应用</code>找到<code>ocs-url</code>,安装<br />
去<a
target="_blank" rel="noopener" href="https://store.kde.org/browse">这里</a>找主题，选择Install而不是Download<br />
<img
src="https://img-blog.csdnimg.cn/20200817184318787.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> 选择Install，会打开ocs-url自动下载<br />
p.s.还有<a
target="_blank" rel="noopener" href="https://www.reddit.com/r/kde/comments/8g97n7/how_to_add_themes_from_httpsstorekdeorg/">一种方法</a>，但是我从来没成功过</p>
<h2 id="美化桌面">1.8 美化桌面</h2>
<p>效果如图<img
src="https://img-blog.csdnimg.cn/20200817184655904.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
<ol type="1">
<li>壁纸自己换</li>
<li>安装latte-dock</li>
</ol>
<pre class="language-bash" data-language="bash"><code class="language-bash">yay -S latte-dock</code></pre>
<p>添加一个新空面板，默认会出现在上面，然后删除下面这个面板<br />
在新面板上添加必要的部件：应用程序面板，数字时钟，托盘图标<br />
还可以加全局菜单，显示面板等等<br />
<img data-src="https://img-blog.csdnimg.cn/20200817184812508.png#pic_center"
alt="在这里插入图片描述" />
启动latte-dock，下方就会出现一个dock栏，具体配置看自己爱好<br />
移除那个时钟的方法：<br />
右键 配置lattedock 然后右键 那个时钟 移除 就好了<br />
进入设置-外观中选择你喜欢的主题什么的安装并且应用即可<br />
设置-工作空间行为-桌面特效 中可以启用一些华丽的特效<br />
设置-开机和关机 中更改登录屏幕等效果<br />
在设置-工作空间行为-常规行为-点击行为
中改掉单击打开文件/文件夹的设置<br />
<img
src="https://img-blog.csdnimg.cn/20200817184838890.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> 修改~下的用户文件夹名称为英文：<br />
先去手动修改文件夹名称，然后在 设置 -&gt; 应用程序 -&gt; 地点 这修改</p>
<h2 id="kde下的其他配置">1.9 KDE下的其他配置</h2>
<h3 id="遇到-要解锁请输入默认密钥环的密码">1.9.1 遇到
要解锁，请输入默认密钥环的密码</h3>
<p><code>添加/删除应用</code>搜索<code>seahorse</code><br />
终端输入<code>seahorse</code>，选择返回(左上角第二个) <img
src="https://img-blog.csdnimg.cn/20200817190919831.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" />
右键默认密钥环，更改密码，先输入老密码，新密码不写，确认即可 <img
src="https://img-blog.csdnimg.cn/20200817191412589.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> 相关阅读：</p>
<ol type="1">
<li><a
target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_44405279/article/details/104123282">manjaro
pacman及其数字签名问题解决</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.cnblogs.com/zenPger/archive/2011/05/25/2057188.html">“要解锁，请输入默认密钥环的密码”的解决办法</a></li>
</ol>
<h3 id="输入密码的时候显示密码">1.9.2 输入密码的时候显示密码</h3>
<p>效果<br />
<img data-src="https://img-blog.csdnimg.cn/20200817193711501.png#pic_center"
alt="在这里插入图片描述" /></p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> visudo</code></pre>
<p>行尾 可添加如下的</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">Defaults pwfeedback</code></pre>
<p>相关阅读： <a
target="_blank" rel="noopener" href="http://8u.hn.cn/Linuxmingling/13084.html">教你在Linux终端中键入密码时显示星号（*）的办法</a></p>
<h3 id="快速启动器-albert">1.9.3 快速启动器 Albert</h3>
<p>本来可以用<code>Alt+Space</code>启动但是i3不支持，所以换成这个，<code>添加/删除应用</code>搜索即可</p>
<h3 id="安装位图图标被禁用">1.9.4 安装位图图标被禁用</h3>
<p>运行</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">cd</span> /etc/fonts/conf.d
<span class="token function">rm</span> <span class="token number">70</span>-no-bitmaps.conf
<span class="token function">ln</span> -s <span class="token punctuation">..</span>/conf.avail/70-yes-bitmaps.conf <span class="token builtin class-name">.</span>
fc-cache -f.</code></pre>
<p>如果还是不行就这个</p>
<blockquote>
<p>Try linking to 70-force-bitmaps instead. 70-yes-bitmaps doesn't seem
to have anything in it. (This is taken from your link.) This worked for
me on Ubuntu 12.04.</p>
<p>The process is like this (Added by a user on 14.04)</p>
</blockquote>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">ln</span> -s /etc/fonts/conf.avail/70-force-bitmaps.conf /etc/fonts/conf.d/
<span class="token function">sudo</span> unlink /etc/fonts/conf.d/70-no-bitmaps.conf <span class="token comment"># For disabling no-bitmap setting</span></code></pre>
<blockquote>
<p>Then do this to update settings</p>
</blockquote>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> dpkg-reconfigure fontconfig</code></pre>
<p>相关阅读 <a
target="_blank" rel="noopener" href="https://askubuntu.com/questions/1039763/how-to-disable-bitmap-fonts">How
to disable bitmap fonts?</a></p>
<h3 id="截图工具推荐">1.9.5 截图工具推荐</h3>
<p>深度截图 <pre class="language-bash" data-language="bash"><code class="language-bash">yaourt deepin-screenshot</code></pre> 如图设置快捷键，快捷键自选 <img
src="https://img-blog.csdnimg.cn/20200817210632557.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
<h3 id="显示本机信息命令">1.9.6 显示本机信息命令</h3>
<p><code>添加/删除应用</code>搜索<code>neofetch</code></p>
<h3 id="切换esc与capslock">1.9.7 切换ESC与CapsLock</h3>
<p>在~/.Xmodmap写入</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token operator">!</span> Swap caps lock and escape
remove Lock <span class="token operator">=</span> Caps_Lock
keysym Escape <span class="token operator">=</span> Caps_Lock
keysym Caps_Lock <span class="token operator">=</span> Escape
<span class="token function">add</span> Lock <span class="token operator">=</span> Caps_Lock</code></pre>
<p>测试 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">exec</span> xmodmap ~/.Xmodmap</code></pre> 可以的话还要加入自启动</p>
<ol type="1">
<li><a
target="_blank" rel="noopener" href="https://blog.csdn.net/tmjdone/article/details/5627239">KDE桌面的方法</a>，当然直接autostart加入.sh即可</li>
<li>i3wm的方法(后面会用到) ~/.config/i3/config写入 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">exec</span> xmodmap ~/.Xmodmap</code></pre></li>
</ol>
<h1 id="i3wm配置-polybar的配置">2. i3wm配置 + Polybar的配置</h1>
<h2 id="i3wm-最基本的使用方法">2.1 i3wm 最基本的使用方法</h2>
<p>==想要获得更好的阅读体验，请点击<a
target="_blank" rel="noopener" href="https://www.jianshu.com/p/b9b644cf528f">链接</a>,我在原文的基础上未做修改==</p>
<blockquote>
<p>2.1小节内容转自<a
target="_blank" rel="noopener" href="https://www.jianshu.com/p/b9b644cf528f">简书</a> ### 2.1.1
默认键位 给那些“太长不看”的人，以下图片是默认热键。
与$mod（Alt）一起按： <img
src="https://img-blog.csdnimg.cn/20200817220611105.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
</blockquote>
<p>与Shift+$mod一起按：</p>
<figure>
<img
src="https://img-blog.csdnimg.cn/20200817220621168.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" />
<figcaption aria-hidden="true">在这里插入图片描述</figcaption>
</figure>
<p>Alt与Shift+$mod一起按：<br />
红色按键是你需要按的修饰键（默认配置），蓝色按键是盲打键位。<br />
要注意的是，若是没有配置文件就启动i3,i3-config-wizard
会帮助你创建一个配置文件，键位位置会跟上图所示一样，不管你是什么键盘布局。<br />
如果你喜欢上图的设置，可以拒绝 i3-config-wizard的引导，默认以
etc/i3/config 作为配置文件</p>
<h3 id="使用i3">2.1.2 使用i3</h3>
<p>贯穿整个使用文档，关键字$mod将当作已配置好的修饰键，修饰键默认为Alt键（Mod1），
windows（Mod4）键也是一个受欢迎的替换方案</p>
<h4 id="打开虚拟终端和移动位置">2.1.2.1 打开虚拟终端和移动位置</h4>
<p>打开一个新的虚拟终端是非常简单的操作，默认情况下，这个操作的组合键是
$ mod+Enter
,默认配置下是Alt+Enter。按下$mod+Enter,将会打开一个新的虚拟终端，它将占满你屏幕的所有空间。<br />
<img
src="https://img-blog.csdnimg.cn/20200817220708270.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
<p>如果你现在打开另一个虚拟终端，i3会把屏幕空间一分为二，各占一半。新创建的窗口会被i3放
在已有窗口的旁边（宽屏）或者下面（竖屏）</p>
<figure>
<img
src="https://img-blog.csdnimg.cn/20200817220719378.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" />
<figcaption aria-hidden="true">在这里插入图片描述</figcaption>
</figure>
<p>要在两个终端之间移动焦点，你可以使用vi编辑器风格的方向键。然而，在i3里，盲打键位就是
方向键(vi编辑器里的方向键为了兼容大多数键盘布局，都向左移动了一个键位)。因此，$
mod+j是向左，$ mod+k是向上，$ mod+l是向下，$
mod+;是向右。像上图的情况，用$ mod+k或$
mod+l在两个终端之间切换。当然，你也可以使用箭头方向键。</p>
<p>现在，你的workspace是按特定方向（默认水平方向）划分（容器里包含两个终端）。你可把
每个window都再分离一次（水平或者垂直），就像workspace一样。“window”指一个容器包含
一个X11窗口（如一个浏览器或者一个终端），“split
container”指的是容器包含一个或多个窗口。<br />
垂直分割窗口，在创建新窗口前按$mod+v，水平分割窗口，按 $ mod+h。</p>
<h4 id="改变容器布局">2.1.2.2 改变容器布局</h4>
<p>一个split container 可以设置成下面所列出的布局之一。<br />
<strong>splith/splitv</strong>容器里的每个窗口都获得等量大小的空间。splith
控制每个窗口在彼此的左右方。splitv 控制每个窗口在彼此的上下方。<br />
<strong>stacking</strong>容器里只显示一个正在活动的窗口。在容器上方得到一个窗口的列表。<br />
<strong>tabbed</strong>与stacking是一个原理，不过tabbed的窗口列表是单行显示的标签页。<br />
<strong>切换模式</strong>：$ mod+e打开splith/splitv，$
mod+s打开stacking，$ mod+w打开tabbed<br />
<img
src="https://img-blog.csdnimg.cn/2020081722074334.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
<h4 id="把一个窗口切换到全屏模式">2.1.2.3 把一个窗口切换到全屏模式</h4>
<p>把一个窗口全屏显示或者退出全屏，按 $ mod+f。<br />
在i3里还有全局全屏模式，那么这个窗口将占据所有的显示输出（多屏显示）（配置命令：fullscrren
toggle global）</p>
<h4 id="打开其他应用程序">2.1.2.4 打开其他应用程序</h4>
<p>除了通过终端打开应用程序，你也可以使用dmenu来打开程序，默认情况下通过<span
class="math inline">\(mod+d调
出。只需要输入你要打开的应用的名字（或者是名字的一部分），应用必须在\)</span>PATH中才能正常打开。<br />
另外，如果你有一个需要经常打开的应用，你可以创建一个组合键来直接打开它，细节请看
配置 部分.</p>
<h4 id="关闭窗口">2.1.2.5 关闭窗口</h4>
<p>如果一个程序未提供一个关闭的机制（很多程序都提供了一个关闭方案，Esc键或者一个快捷键，比如Ctrl+w），你可以按$mod+Shift+q
来杀掉这个窗口。对于支持 WM_DELETE
协议的应用程序，它将正确地关闭（保存任何修改或进行其他清理）。如果程序不支持
WM_DELETE 协议。X server 将杀掉这个程序并且之后的动作取决与此程序。</p>
<h4 id="使用workspace">2.1.2.6 使用WorkSpace</h4>
<p>使用工作空间是分组归类一堆窗口的好方法。默认情况下，你处在第一个workspace,就像i3bar
左下角所指示的一样。要切换到其他workspace，按下$mod+数字键（你要切换到的workspace的数字）。如果工作空间不存在，它将被创建。<br />
一个常见的例子是把网页浏览器放在第一workspace，聊天工具放在另一个workspace，还有另
一个你运行的其他软件放在第三个workspace。当然，你可以不必照着做。<br />
如果你拥有多个显示屏，在启动时将会在每个屏幕创建一个workspace。如果你打开一个新的workspace，他会绑定到你正在工作的显示屏。当你切换一个在其他
显示屏的workspace时，i3 会把焦点设置到那个显示屏。</p>
<h4 id="移动一个window到另一个workspace">2.1.2.7
移动一个window到另一个workspace</h4>
<p>移动一个窗口到另一个工作空间，按$mod+Shift+目标工作区数字。跟切换workspaces时一样
的情况，如果目标工作空间不存在，它将被创建。</p>
<h4 id="调整容器大小调整容器大小">2.1.2.8 调整容器大小调整容器大小</h4>
<p>最简单的办法是用鼠标：拖拽边框到想要的大小。<br />
你也可以定义快捷键来调整，可以看看这个例子，default config--由i3提供</p>
<h4 id="重启">2.1.2.9 重启</h4>
<p>为了重启i3你可以使用$mod+Shift+r(例如当有一个bug时，恢复到正常状态，或者升级到一个新版本i3)。</p>
<h4 id="退出i3">2.1.2.10 退出i3</h4>
<p>不关掉Xserver且利落地退出i3，你可以按$mod+shift+e。通常会有一个对话向你确认是否退出。</p>
<h4 id="section">2.1.2.11</h4>
<p>浮动模式是相对于平铺模式的。窗口的位置和大小不是由i3自动管理的，而是由你手工调整。
使用这个模式有违于平铺模式，但是他对一些案例如"Save
as"对话窗口，或者toolbar窗口（GIMP或类似的）是有用的。这些窗口通常会设置恰当的提示和默认情况下被打开于浮动模式。<br />
你可以通过按$mod+Shift+space来切换一个窗口的浮动模式。通过鼠标拖动标题栏，你可以移
动这个窗口，通过拖动边框，你可以调整窗口大小。你也可以通过使用floating_modifier来操作。另一个调整浮动窗口大小的方法是鼠标右击标题栏并且拖拽。<br />
关于用键盘来调整浮动窗口的大小，请看调整大小的绑定模式，由i3提供<br />
default config<br />
浮动窗口一直处于平铺窗口的上方</p>
<h3 id="树">2.1.3 树</h3>
<p>i3保存着所有关于 X11 output
的数据，workspace和窗口布局在里面是树形图的结构。根节点是X11根窗口，随后是X11
putputs，然后是 dock areas 和一个 content
container，随后是workspace，最后是window本身。在旧版本的i3，每个workspace有多个list和table，这个方法
的结果是难以使用（真的难），理解和实现。</p>
<h4 id="树是由容器组成的">2.1.3.1 树是由容器组成的</h4>
<p>我们把树的组件叫做Containers。一个容器可以掌控一个窗口（意思是一个X11
window，你可以真正看到的，使用的，比如说一个浏览器）。另外，Containers可以再包含一个或者多个Containers。一个简单的workspace例子是：当你在单个显示器打开i3时，只有一个workspace，你这时打开了两个终端，你最后得到的树是：</p>
<p><img
src="https://img-blog.csdnimg.cn/20200817220800804.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> <img
src="https://img-blog.csdnimg.cn/20200817220809719.png#pic_center"
alt="在这里插入图片描述" /></p>
<h4 id="定位和split-containers">2.1.3.2定位和Split Containers</h4>
<p>当以树作为数据结构时，为了构建一个布局，使用所谓的 Split Containers
是很正常的。在i3
里，每个容器都有属于自己的方位（水平，垂直，或者未指定），并且定位取决于上一级容器
的布局（垂直的有splitev和stacking，水平的有splith和tabbed）。所以我们以一个workspace
作为例子，workspace
容器的默认布局是splith(如今很多显示器是宽屏的)。如果你把布局切换成splitv（默认情况下按$mod+v）然后打开两个终端，i3会把你的窗口设置成这个样子：
<img
src="https://img-blog.csdnimg.cn/202008172208200.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
<p>从version
4开始，i3多了一个有趣的新特性，它能够分割任何东西：让我们假设你现在在workspace里打开了两个终端（以splith布局打开，也就是水平定位）焦点处于右边的终端，现
在你想要要在当前终端下面打开另外一个终端。如果你直接打开新终端，它会被放在最右边而
不是下面。解决办法是按<span
class="math inline">\(mod+v用splitv布局来分割容器（要打开Horizontal
Split Container，
用\)</span>mod+h）。现在你可以在当前终端下面打开一个新终端了：</p>
<p>你可能已经猜到了：它能够无限分割到下一层。</p>
<h4 id="聚焦于父容器">2.1.3.3 聚焦于父容器</h4>
<p><code>$mod+a</code><img
src="https://img-blog.csdnimg.cn/20200817220834802.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> <img
src="https://img-blog.csdnimg.cn/20200817220846341.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
<p>我们继续以上图为例。我们在左边有一个终端，右边有两个垂直分布的终端，焦点处在右下角
的终端。当你又打开一个新终端，他会被放在右下角终端的下面。<br />
所以说，要怎么把新终端放到右边而不是下面呢，答案是使用focus
parent，它会把焦点转移到当前容器的父容器。在这种情况下，你会把焦点放在水平方向的workspace里的vertical
split<br />
Container。因此，新窗口会被打开在Vertical Split Container的右边：<br />
<img
src="https://img-blog.csdnimg.cn/20200817220900750.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
<h4 id="隐式容器">2.1.3.4 隐式容器</h4>
<p>在一些情况下，i3需要隐式地创建一个容器来完成你的命令。<br />
一个例子如下：你在单个显示器启用i3，在单个workspace打开3个终端。workspace节点在i3
的layout
tree里，这些终端窗口直属于workspace节点。默认workspace节点的方向设置是水平的。<br />
现在你往下移动其中一个终端（$mod+Shift+k by
default）。那么workspace节点会被设置成垂直布局，你移动的这个终端就会出现在屏幕的下面并且直属于workspace。一个新的容器被创建，用于容纳另外两个终端。当你切换到tabbed模式，你会注意到这个情况。你最终会得到一个有标签页容器，里面有两个窗口（比如
"H[urxvt firefox]"），还有一个你刚才移动到下面的终端窗口。<br />
到这里，真正有趣的事情才刚刚开始;-)。很多东西都非常依赖于你样要的工作环境，所以我们
无法提供一个默认的且合理的配置。<br />
虽然没有使用编程语言来进行配置，i3在你希望让窗口管理器怎么做的方面依然保持着灵活的
特性。<br />
例如，你可以配置一个绑定用来跳到指定的窗口，可以设置打开指定的应用程序到指定的<br />
workspace，可以自动启动某个程序，可以改变i3的配色，还可以设置快捷键来做一些有用的事
情。<br />
要改变i3的配置，复制 /etc/i3/config 到
<sub>/.i3/config并且用一个文本编辑器来编辑它（或者是复制到</sub>/.config/i3/config，如果你喜欢XDG目录方案）<br />
第一次启动i3时，i3会引导你创建一个配置文件，你可以告诉向导程序在配置文件里设置Alt<br />
（Mod1）或windows（Mod4）键作为辅助按键。当然，创建的配置文件会使用你当前键盘布
局的键盘符号。要启动向导程序，请在终端输入命令i3-config-wizard。<br />
请确认你当前并没有~/.i3/config/。否则向导程序将会退出。</p>
<h3 id="配置i3">2.1.4 配置i3</h3>
<p>到这里，真正有趣的事情才刚刚开始;-)。很多东西都非常依赖于你样要的工作环境，所以我们
无法提供一个默认的且合理的配置。<br />
虽然没有使用编程语言来进行配置，i3在你希望让窗口管理器怎么做的方面依然保持着灵活的
特性。<br />
例如，你可以配置一个绑定用来跳到指定的窗口，可以设置打开指定的应用程序到指定的workspace，可以自动启动某个程序，可以改变i3的配色，还可以设置快捷键来做一些有用的事
情。<br />
要改变i3的配置，复制 /etc/i3/config 到
<sub>/.i3/config并且用一个文本编辑器来编辑它（或者是复制到</sub>/.config/i3/config，如果你喜欢XDG目录方案）<br />
第一次启动i3时，i3会引导你创建一个配置文件，你可以告诉向导程序在配置文件里设置Alt（Mod1）或windows（Mod4）键作为辅助按键。当然，创建的配置文件会使用你当前键盘布
局的键盘符号。要启动向导程序，请在终端输入命令i3-config-wizard。<br />
请确认你当前并没有~/.i3/config/。否则向导程序将会退出。</p>
<h4 id="备注">2.1.4.1 备注</h4>
<p>在配置文件里使用备注是可行的和推荐的，为了以后参考或修改，适当地记录你的配置。备注
以#开始，而且只能用在每行的开头： 例子 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token comment"># This is a comment</span></code></pre></p>
<h4 id="字体">2.1.4.2 字体</h4>
<p>i3支持以 X core字体和 FreeType
字体来渲染窗口标题你可以使用xfontsel(1) 生成一个 X
core字体类型。你需要使用一个支持ISO-10646编码的字体来显示特殊字符（Unicode）。<br />
一个FreeType字体类型是由一个字体系列，风格，粗细，便提，伸延组成的，FreeType字体支持从右到左的渲染和往往比
X core字体支持更多的Unicode符号。<br />
如果i3不能打开配置好的字体，i3会吧错误输出到日志文件，退回到可以工作的字体<br />
<strong>语法：</strong> <pre class="language-bash" data-language="bash"><code class="language-bash">font <span class="token operator">&lt;</span>X core font description<span class="token operator">></span>
font pango:<span class="token operator">&lt;</span>family list<span class="token operator">></span> <span class="token punctuation">[</span><span class="token operator">&lt;</span>style options<span class="token operator">></span><span class="token punctuation">]</span> <span class="token operator">&lt;</span>size<span class="token operator">></span></code></pre> <strong>例子：</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash">font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font pango:DejaVu Sans Mono <span class="token number">10</span>
font pango:DejaVu Sans Mono, Terminus Bold Semi-Condensed <span class="token number">11</span>
font pango:Terminus 11px</code></pre></p>
<h4 id="键盘绑定">2.1.4.3 键盘绑定</h4>
<p>一个键盘绑定会让i3在按下特定的按键后执行一个命令。i3允许以keycode或keysym绑定（你可已随便更改绑定，虽然i3并不会帮你解决键位冲突）Keysym(key
symbol)是指键盘上的符号。像是"A"或者"B"，但是像是那些奇怪的"underscore"而不是"_"。这些符号是你们用Xmodmap重新映射的按键。要获得当前键盘的映射，使用命令
xmodmap -pke
。要以交互方式输入一个按键，查看它是被设置成什么keysym，使用命令 xev
。<br />
Keycode
不需要拥有一个已赋值符号（方便某些笔记本热键），而且他们即使在你换了键盘布局后，也不会改变keycode本身（当使用xmodmap）。<br />
我的建议是：如果你经常更换键盘布局，但是不想改变绑定键位的物理位置，使用keycodes。如果你不改变键盘布局，而且想要一个简单干净的配置文件，使用keysyms。某些工具（例如import或者xdotool）可能无法运行在一些KeyPress事件，因为键盘/指针被占用了。针对这些情况，可以使用
--release 标记,这将在按键被松开后执行命令。 <strong>语法：</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash">bindsym <span class="token punctuation">[</span>--release<span class="token punctuation">]</span> <span class="token punctuation">[</span><span class="token operator">&lt;</span>Group<span class="token operator">></span>+<span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token operator">&lt;</span>Modifiers<span class="token operator">></span>+<span class="token punctuation">]</span><span class="token operator">&lt;</span>keysym<span class="token operator">></span> <span class="token builtin class-name">command</span>
bindcode <span class="token punctuation">[</span>--release<span class="token punctuation">]</span> <span class="token punctuation">[</span><span class="token operator">&lt;</span>Group<span class="token operator">></span>+<span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token operator">&lt;</span>Modifiers<span class="token operator">></span>+<span class="token punctuation">]</span><span class="token operator">&lt;</span>keycode<span class="token operator">></span> <span class="token builtin class-name">command</span></code></pre> <strong>例子：</strong> <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token comment"># Fullscreen</span>
bindsym <span class="token variable">$mod</span>+f fullscreen toggle

<span class="token comment"># Restart</span>
bindsym <span class="token variable">$mod</span>+Shift+r restart

<span class="token comment"># Notebook-specific hotkeys</span>
bindcode <span class="token number">214</span> <span class="token builtin class-name">exec</span> --no-startup-id /home/michael/toggle_beamer.sh

<span class="token comment"># Simulate ctrl+v upon pressing $mod+x</span>
bindsym --release <span class="token variable">$mod</span>+x <span class="token builtin class-name">exec</span> --no-startup-id xdotool key --clearmodifiers ctrl+v

<span class="token comment"># Take a screenshot upon pressing $mod+x (select an area)</span>
bindsym --release <span class="token variable">$mod</span>+x <span class="token builtin class-name">exec</span> --no-startup-id <span class="token function">import</span> /tmp/latest-screenshot.png</code></pre> 可以使用的修饰键：
<pre class="language-bash" data-language="bash"><code class="language-bash">Mod1-mod5，Shift，Control</code></pre> 默认修饰请看 xmodmap（1）Group1, Group2, Group3,
Group4当使用多个键盘布局（例如setxkbmap -layout
us，ru）时，您可以指定哪个XKB组（也称为“布局”）键盘绑定应处于活动状态。默认的，键盘绑定会被转换成Group1并且活跃在所有键盘布局。如果你想为其中一个键盘布局重写键盘绑定，指定到相应的group。为了向后兼容，“Mode_switch”
是Group2的别名。</p>
<h4 id="鼠标绑定">2.1.4.4 鼠标绑定</h4>
<p>在容器范围内按下一个已经绑定的鼠标按键，i3将会执行一个命令。你可以用绑定键盘的方法设置鼠标绑定。</p>
<p><strong>语法：</strong> <pre class="language-bash" data-language="bash"><code class="language-bash">bindsym <span class="token punctuation">[</span>--release<span class="token punctuation">]</span> <span class="token punctuation">[</span>--border<span class="token punctuation">]</span> <span class="token punctuation">[</span>--whole-window<span class="token punctuation">]</span> <span class="token punctuation">[</span><span class="token operator">&lt;</span>Modifiers<span class="token operator">></span>+<span class="token punctuation">]</span>button<span class="token operator">&lt;</span>n<span class="token operator">></span> <span class="token builtin class-name">command</span></code></pre>
默认的，绑定只会在点击到标题栏的时候运行。如果添加了--release标记，它会在按键松开时运行。<br />
如果添加了--whole-window标记，绑定会在你点击到窗口任何一个部位时运行，但是边框除外。为了让一个绑定在点击到边框时运行，指定一个--border标记。
<strong>例子:</strong> <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token comment"># The middle button over a titlebar kills the window</span>
bindsym --release button2 <span class="token function">kill</span>

<span class="token comment"># The middle button and a modifer over any part of the window kills the window</span>
bindsym --whole-window <span class="token variable">$mod</span>+button2 <span class="token function">kill</span>

<span class="token comment"># The right button toggles floating</span>
bindsym button3 floating toggle
bindsym <span class="token variable">$mod</span>+button3 floating toggle

<span class="token comment"># The side buttons move the window around</span>
bindsym button9 move left
bindsym button8 move right</code></pre> <strong>绑定模式</strong><br />
你可以拥有多套键位绑定模式，当你切换到其他绑定模式的时候，所有当前键位绑定会被释放，并且只有你新切换的绑定模式生效。唯一的预设的绑定模式是defalut的，他伴随i3的启动，并且没有定义任何指定的绑定模式。<br />
使用绑定模式有以下两部分组成:定义一个绑定模式和切换到它。为了做到这个，需要一个配置指令和一个命令，他们被称为mode。配置指令被用来定义一组绑定并且把它放到一个绑定模式，而命令是用来切换到一个绑定模式。<br />
建议与[variables]组合使用绑定模式，以便维护更容易。以下是一个简单案例<br />
请注意定义一个退回默认模式的绑定键<br />
注意，可以使用[pango_markup]来设置绑定模式， 但是你需要通过添加
--pango_markup标记给定义模式来明确地开启它。</p>
<p><strong>语法</strong> <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token comment"># config directive</span>
mode <span class="token punctuation">[</span>--pango_markup<span class="token punctuation">]</span> <span class="token operator">&lt;</span>name<span class="token operator">></span>

<span class="token comment"># command</span>
mode <span class="token operator">&lt;</span>name<span class="token operator">></span></code></pre> <strong>例子</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token comment"># Press $mod+o followed by either f, t, Esc or Return to launch firefox,</span>
<span class="token comment"># thunderbird or return to the default mode, respectively.</span>
<span class="token builtin class-name">set</span> <span class="token variable">$mode_launcher</span> Launch: <span class="token punctuation">[</span>f<span class="token punctuation">]</span>irefox <span class="token punctuation">[</span>t<span class="token punctuation">]</span>hunderbird
bindsym <span class="token variable">$mod</span>+o mode <span class="token string">"<span class="token variable">$mode_launcher</span>"</span>

mode <span class="token string">"<span class="token variable">$mode_launcher</span>"</span> <span class="token punctuation">&#123;</span>
    bindsym f <span class="token builtin class-name">exec</span> firefox
    bindsym t <span class="token builtin class-name">exec</span> thunderbird

    bindsym Esc mode <span class="token string">"default"</span>
    bindsym Return mode <span class="token string">"default"</span>
<span class="token punctuation">&#125;</span></code></pre> #### 2.1.4.6 浮动调节
移动浮动窗口。你可以选择其中一个方式，1拖动标题栏，2配置可以通过按键和鼠标点击窗口来移动窗口的浮动调节器。最常见的设置是用与管理窗口相同的按键（例如Mod1）。也就是说，你可以按住Mod1,同时鼠标左键点击拖动动窗口到你想要的方位。
当你按住浮动调节器时（Mod1）,你可以通过按住鼠标右键并拖动，来调整那一个窗口的大小。如果你同时按住了Shift键，窗口将会按比例缩放（宽高比会保留）。
<strong>语法</strong> <pre class="language-bash" data-language="bash"><code class="language-bash">floating_modifier <span class="token operator">&lt;</span>Modifier<span class="token operator">></span></code></pre> <strong>例子</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash">floating_modifier Mod1</code></pre></p>
<h4 id="限制浮动窗口的大小">2.1.4.7 限制浮动窗口的大小</h4>
<p>浮动窗口的最大最小面积可以被指定。如果其中的floating_maximum_size被指定为-1，那么对于窗口的最大值将不会被约束。如果其中的floating_maximum_size为定义，或者被制定为0,i3会使用默认值来限制窗口最大值。
floating_minimum_size的处理方法一定程度上与floating_maximum_size的相同。</p>
<p><strong>语法</strong> <pre class="language-bash" data-language="bash"><code class="language-bash">floating_minimum_size <span class="token operator">&lt;</span>width<span class="token operator">></span> x <span class="token operator">&lt;</span>height<span class="token operator">></span>
floating_maximum_size <span class="token operator">&lt;</span>width<span class="token operator">></span> x <span class="token operator">&lt;</span>height<span class="token operator">></span></code></pre> <strong>例子</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash">floating_minimum_size <span class="token number">75</span> x <span class="token number">50</span>
floating_maximum_size -1 x -1</code></pre></p>
<h4 id="工作区的定位">2.1.4.8 工作区的定位</h4>
<p>新工作区有一个默认合适的定位：宽屏用水平定位，竖屏用垂直定位。<br />
你可以重写default_orientation的行为</p>
<p><strong>语法</strong> <pre class="language-bash" data-language="bash"><code class="language-bash">default_orientation horizontal<span class="token operator">|</span>vertical<span class="token operator">|</span>auto</code></pre> <strong>例子</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash">default_orientation vertical</code></pre></p>
<h4 id="新容器的布局模式">2.1.4.9 新容器的布局模式</h4>
<p>这个选项决定了工作区级别的容器该用什么布局模式</p>
<p><strong>语法</strong> <pre class="language-bash" data-language="bash"><code class="language-bash">workspace_layout default<span class="token operator">|</span>stacking<span class="token operator">|</span>tabbed</code></pre> <strong>例子</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash">workspace_layout tabbed</code></pre></p>
<h4 id="新窗口的边框风格">2.1.4.10 新窗口的边框风格</h4>
<p>此选项决定新窗口拥有什么样的边框风格。默认是normal。注意，new_float
仅应用于作为浮动窗口呼出的窗口。例如对话窗口，而不是到后来才被设置成浮动窗口的窗口。</p>
<p><strong>语法</strong> <pre class="language-bash" data-language="bash"><code class="language-bash">new_window normal<span class="token operator">|</span>none<span class="token operator">|</span>pixel
new_window normal<span class="token operator">|</span>pixel <span class="token operator">&lt;</span>px<span class="token operator">></span>
new_float normal<span class="token operator">|</span>none<span class="token operator">|</span>pixel
new_float normal<span class="token operator">|</span>pixel <span class="token operator">&lt;</span>px<span class="token operator">></span></code></pre> <strong>例子</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash">new_window pixel
<span class="token string">"normal"</span> 和 <span class="token string">"pixel"</span> 边框风格支持设置边框像素大小的可选项。</code></pre> <strong>例子</strong> <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token comment"># The same as new_window none</span>
new_window pixel <span class="token number">0</span>

<span class="token comment"># A 3 px border</span>
new_window pixel <span class="token number">3</span></code></pre></p>
<h4 id="隐藏靠近屏幕边缘的边框">2.1.4.11 隐藏靠近屏幕边缘的边框</h4>
<p>你可以使用hide_edge_borders来隐藏与屏幕边缘靠近的边框。如果你使用滚动条的话这很有用，或者不想浪费甚至两像素的显示空间。"smart"选项是在工作区内只有一个可见窗口时才隐藏边框，而在工作去内有多个窗口，他不会隐藏边框。</p>
<p><strong>语法</strong> <pre class="language-bash" data-language="bash"><code class="language-bash">hide_edge_borders none<span class="token operator">|</span>vertical<span class="token operator">|</span>horizontal<span class="token operator">|</span>both<span class="token operator">|</span>smart</code></pre> <strong>例子</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash">hide_edge_borders vertical</code></pre></p>
<h4 id="指定窗口的任意命令for-window">2.1.4.12 指定窗口的任意命令（for
window）</h4>
<p>使用for_window指令，当i3碰到特定的窗口，你可以让i3执行任何命令。它可以用在让窗口浮动，改变他们的边框的方面，等。</p>
<p><strong>语法</strong> <pre class="language-bash" data-language="bash"><code class="language-bash">for_window <span class="token operator">&lt;</span>criteria<span class="token operator">></span> <span class="token operator">&lt;</span>command<span class="token operator">></span></code></pre> <strong>例子</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token comment"># enable floating mode for all XTerm windows</span>
for_window <span class="token punctuation">[</span>class<span class="token operator">=</span><span class="token string">"XTerm"</span><span class="token punctuation">]</span> floating <span class="token builtin class-name">enable</span>

<span class="token comment"># Make all urxvts use a 1-pixel border:</span>
for_window <span class="token punctuation">[</span>class<span class="token operator">=</span><span class="token string">"urxvt"</span><span class="token punctuation">]</span> border pixel <span class="token number">1</span>

<span class="token comment"># A less useful, but rather funny example:</span>
<span class="token comment"># makes the window floating as soon as I change</span>
<span class="token comment"># directory to ~/work</span>
for_window <span class="token punctuation">[</span>title<span class="token operator">=</span><span class="token string">"x200: ~/work"</span><span class="token punctuation">]</span> floating <span class="token builtin class-name">enable</span></code></pre> 有效的命令请command_criteria</p>
<h4 id="不把焦点放在新建窗口">2.1.4.13 不把焦点放在新建窗口</h4>
<p>当一个新窗口出现时，焦点会移到它那里。no_focus
指令允许预防这种情况发生，而且它必须与command_criteria一起使用<br />
注意，他不会在所有情景下生效，例如，当数据正输送给一个运行中的程序，使得焦点必须移到它身上。设置这种情况的行为，参考focus_on_window_activation在工作区的第一个窗口中，no_focus也会被忽略，在这种情况下，没有理由不把焦点放在这个窗口。与workspace_layaout结合使用会有更好是可用性。</p>
<p><strong>语法</strong> <pre class="language-bash" data-language="bash"><code class="language-bash">no_focus <span class="token operator">&lt;</span>criteria<span class="token operator">></span></code></pre> <strong>例子</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash">no_focus <span class="token punctuation">[</span>window_role<span class="token operator">=</span><span class="token string">"pop-up"</span><span class="token punctuation">]</span></code></pre></p>
<h4 id="变量">2.1.4.14 变量</h4>
<p>正如您在有关键盘绑定的章节中了解到的，你将要配置许多包含修饰键的绑定，如果你想要保存一些输入并能够改变你之后要用的修饰键，那么变量就很方便了。</p>
<p><strong>语法</strong> <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">set</span> $<span class="token operator">&lt;</span>name<span class="token operator">></span> <span class="token operator">&lt;</span>value<span class="token operator">></span></code></pre> <strong>例子</strong>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">set</span> <span class="token variable">$m</span> Mod1
bindsym <span class="token variable">$m</span>+Shift+r restart</code></pre>
在解释过程中，变量会在文件中被替换。变量扩张不是递归的，所以不可能用一个包含另一个变量的值来定义变量。对于这个没有其他的想法，而且绝对没有改变的计划。如果你需要更多的动态配置，你应该创建一些用来生成配置文件在i3启动之前运行的脚本。</p>
<h2 id="i3wm的配置">2.2 i3wm的配置</h2>
<p>==想要获得更好的阅读体验，请点击<a
target="_blank" rel="noopener" href="https://github.com/Kuari/i3-wm-config">链接</a>,我在原文的基础上未做修改，原配置文件可以直接去github下载==</p>
<blockquote>
<p>配置改自<a
target="_blank" rel="noopener" href="https://github.com/Kuari/i3-wm-config">github</a></p>
</blockquote>
<h3 id="安装-1">安装</h3>
<blockquote>
<p>此处默认配置好基础系统和安装好图形化以及i3-wm</p>
</blockquote>
<h4 id="需要的软件">需要的软件</h4>
<ul>
<li><em>i3-wm</em> : 窗口管理器</li>
<li><em>i3gaps</em> : 设置窗口间距</li>
<li><em>feh</em> : 设置背景图片</li>
<li><em>compton</em> : 终端透明</li>
<li><em>xfce4-terminal</em> : 终端</li>
<li><em>polybar</em> : 状态栏</li>
<li><em>i3lock-fancy-git</em> : 锁屏</li>
</ul>
<h4 id="安装步骤">安装步骤</h4>
<h5 id="安装字体">1.安装字体</h5>
<pre class="language-bash" data-language="bash"><code class="language-bash">yaourt -S ttf-font-awesome</code></pre>
<h5 id="安装需要的包">2.安装需要的包</h5>
<pre class="language-bash" data-language="bash"><code class="language-bash">yaourt -S xfce4-terminal feh compton i3-gaps i3lock-fancy-git polybar-git</code></pre>
<h5 id="配置">3.配置</h5>
<p>在文件<code>.xinitrc</code>加入如下 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">exec</span> compton -b <span class="token operator">&amp;</span>
<span class="token builtin class-name">exec</span> i3 -V <span class="token operator">>></span> ~/.config/i3/log/i3log-<span class="token variable"><span class="token variable">$(</span><span class="token function">date</span> +<span class="token string">'%F-%k-%M-%S'</span><span class="token variable">)</span></span> <span class="token operator"><span class="token file-descriptor important">2</span>></span><span class="token file-descriptor important">&amp;1</span></code></pre></p>
<h4 id="遇到的问题">遇到的问题</h4>
<h5 id="依赖">1.依赖</h5>
<p>依赖软件包括<code>alsa</code>,<code>MPD</code>等等,可以去<a
target="_blank" rel="noopener" href="https://github.com/jaagr/polybar">polybar的Github主页</a>去查看相关文档。
##### 2.调试 <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">cd</span> .config/polybar
<span class="token function">bash</span> launch.sh</code></pre>
运行此命令调试查看其报错。除了此处查看报错,根据以上配置,i3启动之后会输出日志到<code>~/.config/i3/log/</code>,可以直接查看日志。
##### 3.显示输出报错 报错内容为 <pre class="language-bash" data-language="bash"><code class="language-bash">Monitor <span class="token string">'eDP-1'</span> not found or disconnected</code></pre>
这个问题需要看具体的硬件,可以查看<a
target="_blank" rel="noopener" href="https://wiki.archlinux.org/index.php/Xrandr">archlinux的xrander</a>,通过<code>xrander</code>查看自己主要适用的显示设备等等信息,然后修改i3和polybar配置文件内设备信息即可。</p>
<h3 id="快捷键">快捷键</h3>
<h5 id="基础">基础</h5>
<table style="width:100%;">
<colgroup>
<col style="width: 42%" />
<col style="width: 34%" />
<col style="width: 22%" />
</colgroup>
<thead>
<tr class="header">
<th>功能</th>
<th>按键</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>向上/下/左/右移动</td>
<td>$mod+k/j/h/l</td>
<td></td>
</tr>
<tr class="even">
<td>切换分区</td>
<td>$mod+1/2/3/4/5/6/7/8/9/0</td>
<td></td>
</tr>
<tr class="odd">
<td>移动窗口到目标分区</td>
<td>$mod+Shift+1/2/3/.../0</td>
<td></td>
</tr>
<tr class="even">
<td>关闭i3-wm</td>
<td>$mod+Shift+e</td>
<td></td>
</tr>
<tr class="odd">
<td>关闭窗口</td>
<td>$mod+q</td>
<td></td>
</tr>
<tr class="even">
<td>移动窗口到上/下/左/右侧</td>
<td>$mod+Shift+k/j/h/l</td>
<td></td>
</tr>
<tr class="odd">
<td>更改布局为横向/竖向</td>
<td>$mod+h/v</td>
<td></td>
</tr>
<tr class="even">
<td>窗口全屏/取消全屏</td>
<td>$mod+f</td>
<td></td>
</tr>
<tr class="odd">
<td>隐藏窗口</td>
<td>$mod+-</td>
<td></td>
</tr>
<tr class="even">
<td>切换显示隐藏窗口（为浮动状态）</td>
<td>$mod+Shift+-</td>
<td></td>
</tr>
<tr class="odd">
<td>浮动窗口取消浮动</td>
<td>$mod+Shift+space</td>
<td></td>
</tr>
<tr class="even">
<td>调高音量5%</td>
<td>$mod+F3</td>
<td></td>
</tr>
<tr class="odd">
<td>调低音量5%</td>
<td>$mod+F2</td>
<td></td>
</tr>
<tr class="even">
<td>打开/关闭声音</td>
<td>$mod+F1</td>
<td></td>
</tr>
<tr class="odd">
<td>锁屏</td>
<td>$mod+F12</td>
<td>需要安装i3-fancy</td>
</tr>
</tbody>
</table>
<h5 id="软件">软件</h5>
<ul>
<li>此处需要安装相应的软件才可实现</li>
</ul>
<table>
<thead>
<tr class="header">
<th>功能</th>
<th>按键</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>终端</td>
<td>$mod+enter</td>
<td>用的xfce4-terminal</td>
</tr>
<tr class="even">
<td>firefox</td>
<td>$mod+Shift+f</td>
<td></td>
</tr>
<tr class="odd">
<td>chromium</td>
<td>$mod+Shift+g</td>
<td></td>
</tr>
<tr class="even">
<td>slack</td>
<td>$mod+Shift+k</td>
<td></td>
</tr>
<tr class="odd">
<td>steam</td>
<td>$mod+Shift+s</td>
<td></td>
</tr>
<tr class="even">
<td>thunderbird</td>
<td>$mod+Ctrl+t</td>
<td></td>
</tr>
<tr class="odd">
<td>blueberry</td>
<td>$mod+Shift+b</td>
<td></td>
</tr>
<tr class="even">
<td>virtualbox中的win10虚拟机</td>
<td>$mod+Shift+v</td>
<td></td>
</tr>
<tr class="odd">
<td>...</td>
<td>...</td>
<td>...</td>
</tr>
</tbody>
</table>
<p><br /></p>
<h3 id="自定义配置">自定义配置</h3>
<h4 id="配置快捷键">1. 配置快捷键</h4>
<pre class="language-bash" data-language="bash"><code class="language-bash">bindsym <span class="token variable">$mod</span>+<span class="token operator">&lt;</span>快捷键<span class="token operator">></span> <span class="token builtin class-name">exec</span> <span class="token operator">&lt;</span>shell<span class="token operator">></span></code></pre>
<ul>
<li>软件</li>
</ul>
<p>需要确保软件已安装，且使用软件自带的启动命令</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">bindsym <span class="token variable">$mod</span>+Shift+f <span class="token builtin class-name">exec</span> firefox</code></pre>
<ul>
<li>运行脚本</li>
</ul>
<pre class="language-bash" data-language="bash"><code class="language-bash">bindsym <span class="token variable">$mod</span>+Shift+s <span class="token builtin class-name">exec</span> <span class="token function">bash</span> ~/example.sh</code></pre>
<ul>
<li>virtualbox虚拟机</li>
</ul>
<p>此处为直接打开一个名为“win10”的虚拟机</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">bindsym <span class="token variable">$mod</span>+Shift+v <span class="token builtin class-name">exec</span> VBoxManage startvm <span class="token string">"win10"</span> --type gui</code></pre>
<h4 id="配置背景图">2. 配置背景图</h4>
<pre class="language-bash" data-language="bash"><code class="language-bash">exec_always --no-startup-id feh --bg-scale <span class="token string">"/home/kuari/Picture/girl.png"</span></code></pre>
<p><br /></p>
<h3 id="常用软件">常用软件</h3>
<table>
<tr>
<th>
功能
</th>
<th>
软件
</th>
</tr>
<tr>
<th>
浏览器
</th>
<th>
Firefox, chromium
</th>
</tr>
<tr>
<th>
输入法
</th>
<th>
ibus, ibus-libpinyin
</th>
</tr>
<tr>
<th>
程序启动
</th>
<th>
rofi
</th>
</tr>
<tr>
<th>
邮件
</th>
<th>
thunderbird
</th>
</tr>
<tr>
<th>
编辑器
</th>
<th>
vim
</th>
</tr>
<tr>
<th>
音频播放
</th>
<th>
vlc, mplayer
</th>
</tr>
<tr>
<th>
office组件
</th>
<th>
libreoffice, wps
</th>
</tr>
</table>
<p><strong>我的配置文件</strong></p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token comment"># i3 config file (v4)</span>
<span class="token comment">#</span>
<span class="token comment"># Please see https://i3wm.org/docs/userguide.html for a complete reference!</span>
<span class="token comment">#</span>
<span class="token comment"># This config file uses keycodes (bindsym) and was written for the QWERTY</span>
<span class="token comment"># layout.</span>
<span class="token comment">#</span>
<span class="token comment"># To get a config file with the same key positions, but for your current</span>
<span class="token comment"># layout, use the i3-config-wizard</span>
<span class="token comment">#</span>

<span class="token comment"># Font for window titles. Will also be used by the bar unless a different font</span>
<span class="token comment"># is used in the bar &#123;&#125; block below.</span>
font pango:monospace <span class="token number">8</span>

<span class="token comment"># This font is widely installed, provides lots of unicode glyphs, right-to-left</span>
<span class="token comment"># text rendering and scalability on retina/hidpi displays (thanks to pango).</span>
<span class="token comment">#font pango:DejaVu Sans Mono 8</span>

<span class="token comment"># Before i3 v4.8, we used to recommend this one as the default:</span>
<span class="token comment"># font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1</span>
<span class="token comment"># The font above is very space-efficient, that is, it looks good, sharp and</span>
<span class="token comment"># clear in small sizes. However, its unicode glyph coverage is limited, the old</span>
<span class="token comment"># X core fonts rendering does not support right-to-left and this being a bitmap</span>
<span class="token comment"># font, it doesn’t scale on retina/hidpi displays.</span>

<span class="token comment"># use these keys for focus, movement, and resize directions when reaching for</span>
<span class="token comment"># the arrows is not convenient</span>
<span class="token builtin class-name">set</span> <span class="token variable">$up</span> k
<span class="token builtin class-name">set</span> <span class="token variable">$down</span> j
<span class="token builtin class-name">set</span> <span class="token variable">$left</span> h
<span class="token builtin class-name">set</span> <span class="token variable">$right</span> l
<span class="token builtin class-name">set</span> <span class="token variable">$mod</span> Mod4

<span class="token comment"># use Mouse+$mod to drag floating windows to their wanted position</span>
floating_modifier <span class="token variable">$mod</span>

<span class="token comment"># start a terminal</span>
<span class="token comment"># bindsym $mod+Return exec gnome-terminal</span>
<span class="token comment"># bindsym $mod+Return exec xfce4-terminal</span>
bindsym <span class="token variable">$mod</span>+Return <span class="token builtin class-name">exec</span> konsole

<span class="token comment"># amixer</span>
bindsym <span class="token variable">$mod</span>+F3 <span class="token builtin class-name">exec</span> amixer <span class="token builtin class-name">set</span> Master <span class="token number">5</span>%+
bindsym <span class="token variable">$mod</span>+F2 <span class="token builtin class-name">exec</span> amixer <span class="token builtin class-name">set</span> Master <span class="token number">5</span>%-
bindsym <span class="token variable">$mod</span>+F1 <span class="token builtin class-name">exec</span> amixer <span class="token builtin class-name">set</span> Master toggle

<span class="token comment"># i3lock</span>
bindsym <span class="token variable">$mod</span>+F12 <span class="token builtin class-name">exec</span> i3lock-fancy

<span class="token comment"># start the firefox</span>
bindsym <span class="token variable">$mod</span>+Shift+f <span class="token builtin class-name">exec</span> firefox

<span class="token comment"># start the bluetooth</span>
bindsym <span class="token variable">$mod</span>+Shift+b <span class="token builtin class-name">exec</span> blueberry

<span class="token comment"># start the rem</span>
bindsym <span class="token variable">$mod</span>+Control+r <span class="token builtin class-name">exec</span> remarkable

<span class="token comment"># start slack</span>
bindsym <span class="token variable">$mod</span>+Control+k <span class="token builtin class-name">exec</span> slack

<span class="token comment"># start the win10</span>
bindsym <span class="token variable">$mod</span>+Shift+v <span class="token builtin class-name">exec</span> VBoxManage startvm <span class="token string">"win10"</span> --type gui

<span class="token comment"># start the chromium</span>
bindsym <span class="token variable">$mod</span>+Shift+g <span class="token builtin class-name">exec</span> chromium

<span class="token comment"># ss</span>
bindsym <span class="token variable">$mod</span>+Shift+s <span class="token builtin class-name">exec</span> <span class="token function">bash</span> ~/.ss.sh

<span class="token comment"># wps, et, wpp</span>
bindsym <span class="token variable">$mod</span>+Control+w <span class="token builtin class-name">exec</span> wps
bindsym <span class="token variable">$mod</span>+Control+e <span class="token builtin class-name">exec</span> et
bindsym <span class="token variable">$mod</span>+Control+p <span class="token builtin class-name">exec</span> wpp

<span class="token comment"># thunderbird</span>
bindsym <span class="token variable">$mod</span>+Control+t <span class="token builtin class-name">exec</span> thunderbird

<span class="token comment"># kill focused window</span>
bindsym <span class="token variable">$mod</span>+Shift+q <span class="token function">kill</span>

<span class="token comment"># steam</span>
bindsym <span class="token variable">$mod</span>+Control+s <span class="token builtin class-name">exec</span> steam

<span class="token comment"># start dmenu (a program launcher)</span>
<span class="token comment"># bindsym $mod+d exec dmenu_run</span>
<span class="token comment">#</span>
<span class="token comment"># run rofi</span>
bindsym <span class="token variable">$mod</span>+d <span class="token builtin class-name">exec</span> rofi -show run

<span class="token comment"># arandr</span>
bindsym <span class="token variable">$mod</span>+Shift+n <span class="token builtin class-name">exec</span> arandr
<span class="token comment"># There also is the (new) i3-dmenu-desktop which only displays applications</span>
<span class="token comment"># shipping a .desktop file. It is a wrapper around dmenu, so you need that</span>
<span class="token comment"># installed.</span>
<span class="token comment"># bindsym $mod+d exec --no-startup-id i3-dmenu-desktop</span>

<span class="token comment"># change focus</span>
bindsym <span class="token variable">$mod</span>+<span class="token variable">$left</span> focus left
bindsym <span class="token variable">$mod</span>+<span class="token variable">$down</span> focus down
bindsym <span class="token variable">$mod</span>+<span class="token variable">$up</span> focus up
bindsym <span class="token variable">$mod</span>+<span class="token variable">$right</span> focus right

<span class="token comment"># alternatively, you can use the cursor keys:</span>
bindsym <span class="token variable">$mod</span>+Left focus left
bindsym <span class="token variable">$mod</span>+Down focus down
bindsym <span class="token variable">$mod</span>+Up focus up
bindsym <span class="token variable">$mod</span>+Right focus right

<span class="token comment"># move focused window</span>
bindsym <span class="token variable">$mod</span>+Shift+<span class="token variable">$left</span> move left
bindsym <span class="token variable">$mod</span>+Shift+<span class="token variable">$down</span> move down
bindsym <span class="token variable">$mod</span>+Shift+<span class="token variable">$up</span> move up
bindsym <span class="token variable">$mod</span>+Shift+<span class="token variable">$right</span> move right

<span class="token comment"># alternatively, you can use the cursor keys:</span>
bindsym <span class="token variable">$mod</span>+Shift+Left move left
bindsym <span class="token variable">$mod</span>+Shift+Down move down
bindsym <span class="token variable">$mod</span>+Shift+Up move up
bindsym <span class="token variable">$mod</span>+Shift+Right move right

<span class="token comment"># split in horizontal orientation</span>
bindsym <span class="token variable">$mod</span>+g <span class="token function">split</span> h

<span class="token comment"># split in vertical orientation</span>
bindsym <span class="token variable">$mod</span>+v <span class="token function">split</span> <span class="token function">v</span>

<span class="token comment"># enter fullscreen mode for the focused container</span>
bindsym <span class="token variable">$mod</span>+f fullscreen toggle

<span class="token comment"># change container layout (stacked, tabbed, toggle split)</span>
bindsym <span class="token variable">$mod</span>+s layout stacking
bindsym <span class="token variable">$mod</span>+w layout tabbed
bindsym <span class="token variable">$mod</span>+e layout toggle <span class="token function">split</span>

<span class="token comment"># toggle tiling / floating</span>
bindsym <span class="token variable">$mod</span>+Shift+space floating toggle

<span class="token comment"># change focus between tiling / floating windows</span>
bindsym <span class="token variable">$mod</span>+space focus mode_toggle

<span class="token comment"># focus the parent container</span>
bindsym <span class="token variable">$mod</span>+a focus parent

<span class="token comment"># focus the child container</span>
<span class="token comment">#bindsym $mod+d focus child</span>

<span class="token comment"># move the currently focused window to the scratchpad</span>
bindsym <span class="token variable">$mod</span>+Shift+minus move scratchpad

<span class="token comment"># Show the next scratchpad window or hide the focused scratchpad window.</span>
<span class="token comment"># If there are multiple scratchpad windows, this command cycles through them.</span>
bindsym <span class="token variable">$mod</span>+minus scratchpad show

<span class="token comment"># use window title, but no border</span>
bindsym <span class="token variable">$mod</span>+t border normal <span class="token number">0</span>
<span class="token comment"># use no window title and a thick border</span>
bindsym <span class="token variable">$mod</span>+y border pixel <span class="token number">3</span>
<span class="token comment"># use neither window title nor border</span>
bindsym <span class="token variable">$mod</span>+u border none


<span class="token comment"># workspace names</span>
<span class="token builtin class-name">set</span> <span class="token variable">$ws1</span> <span class="token number">1</span>:
<span class="token builtin class-name">set</span> <span class="token variable">$ws2</span> <span class="token number">2</span>:
<span class="token builtin class-name">set</span> <span class="token variable">$ws3</span> <span class="token number">3</span>:
<span class="token builtin class-name">set</span> <span class="token variable">$ws4</span> <span class="token number">4</span>:
<span class="token builtin class-name">set</span> <span class="token variable">$ws5</span> <span class="token number">5</span>:
<span class="token builtin class-name">set</span> <span class="token variable">$ws6</span> <span class="token number">6</span>:
<span class="token builtin class-name">set</span> <span class="token variable">$ws7</span> <span class="token number">7</span>:
<span class="token builtin class-name">set</span> <span class="token variable">$ws8</span> <span class="token number">8</span>:
<span class="token builtin class-name">set</span> <span class="token variable">$ws9</span> <span class="token number">9</span>:
<span class="token builtin class-name">set</span> <span class="token variable">$ws10</span> <span class="token number">0</span>:

<span class="token comment"># switch to workspace</span>
bindsym <span class="token variable">$mod</span>+1 workspace <span class="token variable">$ws1</span>
bindsym <span class="token variable">$mod</span>+2 workspace <span class="token variable">$ws2</span>
bindsym <span class="token variable">$mod</span>+3 workspace <span class="token variable">$ws3</span>
bindsym <span class="token variable">$mod</span>+4 workspace <span class="token variable">$ws4</span>
bindsym <span class="token variable">$mod</span>+5 workspace <span class="token variable">$ws5</span>
bindsym <span class="token variable">$mod</span>+6 workspace <span class="token variable">$ws6</span>
bindsym <span class="token variable">$mod</span>+7 workspace <span class="token variable">$ws7</span>
bindsym <span class="token variable">$mod</span>+8 workspace <span class="token variable">$ws8</span>
bindsym <span class="token variable">$mod</span>+9 workspace <span class="token variable">$ws9</span>
bindsym <span class="token variable">$mod</span>+0 workspace <span class="token variable">$ws10</span>

<span class="token comment"># move focused container to workspace</span>
bindsym <span class="token variable">$mod</span>+Shift+1 move container to workspace <span class="token variable">$ws1</span>
bindsym <span class="token variable">$mod</span>+Shift+2 move container to workspace <span class="token variable">$ws2</span>
bindsym <span class="token variable">$mod</span>+Shift+3 move container to workspace <span class="token variable">$ws3</span>
bindsym <span class="token variable">$mod</span>+Shift+4 move container to workspace <span class="token variable">$ws4</span>
bindsym <span class="token variable">$mod</span>+Shift+5 move container to workspace <span class="token variable">$ws5</span>
bindsym <span class="token variable">$mod</span>+Shift+6 move container to workspace <span class="token variable">$ws6</span>
bindsym <span class="token variable">$mod</span>+Shift+7 move container to workspace <span class="token variable">$ws7</span>
bindsym <span class="token variable">$mod</span>+Shift+8 move container to workspace <span class="token variable">$ws8</span>
bindsym <span class="token variable">$mod</span>+Shift+9 move container to workspace <span class="token variable">$ws9</span>
bindsym <span class="token variable">$mod</span>+Shift+0 move container to workspace <span class="token variable">$ws10</span>

<span class="token comment"># assign</span>
<span class="token comment"># assign [class="chromium"] $ws4</span>
<span class="token comment"># assign [class="arandr"] $ws10</span>
<span class="token comment"># assign [class="wps"] $ws6</span>
<span class="token comment"># assign [class="et"] $ws6</span>
<span class="token comment"># assign [class="wpp"] $ws6</span>
<span class="token comment"># assign [class="virtualbox"] $ws9</span>
<span class="token comment"># assign [class="steam"] $ws5</span>
<span class="token comment"># assign [class="thunderbird"] $ws7</span>
<span class="token comment"># assign [class="slack"] $ws8</span>
<span class="token comment"># assign [class="virtualbox"] $ws9</span>

<span class="token comment"># for_window [instance="Steam"] floating enable</span>
<span class="token comment"># for_window [instance="Steam"] border none</span>

<span class="token comment"># reload the configuration file</span>
bindsym <span class="token variable">$mod</span>+Shift+c reload
<span class="token comment"># restart i3 inplace (preserves your layout/session, can be used to upgrade i3)</span>
bindsym <span class="token variable">$mod</span>+Shift+r restart
<span class="token comment"># exit i3 (logs you out of your X session)</span>
bindsym <span class="token variable">$mod</span>+Shift+e <span class="token builtin class-name">exec</span> <span class="token string">"i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"</span>

<span class="token comment"># gaps inner 10</span>
gaps inner <span class="token number">0</span>
<span class="token comment"># gaps outer 5</span>

<span class="token comment"># resize window (you can also use the mouse for that)</span>
mode <span class="token string">"resize"</span> <span class="token punctuation">&#123;</span>
        <span class="token comment"># These bindings trigger as soon as you enter the resize mode</span>

        <span class="token comment"># Pressing left will shrink the window’s width.</span>
        <span class="token comment"># Pressing right will grow the window’s width.</span>
        <span class="token comment"># Pressing up will shrink the window’s height.</span>
        <span class="token comment"># Pressing down will grow the window’s height.</span>
        bindsym <span class="token variable">$left</span>       resize shrink width <span class="token number">10</span> px or <span class="token number">10</span> ppt
        bindsym <span class="token variable">$down</span>       resize grow height <span class="token number">10</span> px or <span class="token number">10</span> ppt
        bindsym <span class="token variable">$up</span>         resize shrink height <span class="token number">10</span> px or <span class="token number">10</span> ppt
        bindsym <span class="token variable">$right</span>      resize grow width <span class="token number">10</span> px or <span class="token number">10</span> ppt

        <span class="token comment"># same bindings, but for the arrow keys</span>
        bindsym Left        resize shrink width <span class="token number">10</span> px or <span class="token number">10</span> ppt
        bindsym Down        resize grow height <span class="token number">10</span> px or <span class="token number">10</span> ppt
        bindsym Up          resize shrink height <span class="token number">10</span> px or <span class="token number">10</span> ppt
        bindsym Right       resize grow width <span class="token number">10</span> px or <span class="token number">10</span> ppt

        <span class="token comment"># back to normal: Enter or Escape</span>
        bindsym Return mode <span class="token string">"default"</span>
        bindsym Escape mode <span class="token string">"default"</span>
<span class="token punctuation">&#125;</span>

bindsym <span class="token variable">$mod</span>+r mode <span class="token string">"resize"</span>

<span class="token comment"># Start i3bar to display a workspace bar (plus the system information i3status</span>
<span class="token comment"># finds out, if available)</span>
<span class="token comment"># i3status</span>
<span class="token comment"># bar &#123;</span>
    <span class="token comment"># status_command i3status</span>
<span class="token comment"># #    status_command py3status -c ~/.i3status.conf</span>
    <span class="token comment"># strip_workspace_numbers yes</span>
    <span class="token comment"># separator_symbol " "</span>
    <span class="token comment"># position top</span>
    <span class="token comment"># font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1</span>
    <span class="token comment"># font pango:DejaVu Sans Mono 10</span>
    <span class="token comment"># colors &#123;</span>
        <span class="token comment"># background #000000</span>
        <span class="token comment"># statusline #ffffff</span>
        <span class="token comment"># separator #00E3E3</span>

        <span class="token comment"># focused_workspace  #4F4F4F #4F4F4F #ffffff</span>
        <span class="token comment"># active_workspace   #333333 #5f676a #ffffff</span>
        <span class="token comment"># inactive_workspace #333333 #222222 #888888</span>
        <span class="token comment"># urgent_workspace   #2f343a #900000 #ffffff</span>
        <span class="token comment"># binding_mode       #2f343a #900000 #ffffff</span>
    <span class="token comment"># &#125;</span>
<span class="token comment"># &#125;</span>

<span class="token comment"># polybar</span>
<span class="token comment"># bar &#123;</span>
    <span class="token comment"># i3bar_command $HOME/.config/polybar/launch.sh</span>
<span class="token comment"># &#125;</span>
<span class="token comment"># border</span>
new_window pixel <span class="token number">0</span>

<span class="token comment"># background</span>
exec_always --no-startup-id feh --bg-scale <span class="token string">"/home/kuari/Picture/girl.png"</span>

<span class="token comment"># screen timeout</span>
<span class="token builtin class-name">exec</span> --no-startup-id xset dpms <span class="token number">600</span> <span class="token number">800</span> <span class="token number">900</span>

<span class="token comment"># xrandr</span>
<span class="token builtin class-name">exec</span> --no-startup-id xrandr --output eDP1 --mode 1920x1080 --same-as HDMI2

<span class="token comment"># polybar</span>
<span class="token comment"># exec_always --no-startup-id $HOME/.config/polybar/launch.sh</span>

<span class="token comment">#######################################################################</span>
<span class="token comment"># automatically start i3-config-wizard to offer the user to create a</span>
<span class="token comment"># keysym-based config which used their favorite modifier (alt or windows)</span>
<span class="token comment">#</span>
<span class="token comment"># i3-config-wizard will not launch if there already is a config file</span>
<span class="token comment"># in ~/.i3/config.</span>
<span class="token comment">#</span>
<span class="token comment"># Please remove the following exec line:</span>
<span class="token comment">#######################################################################</span>
<span class="token comment">#exec i3-config-wizard</span>
exec_always --no-startup-id feh --bg-scale <span class="token string">"/home/liukairui/图片/Sleepy Mountains/sleepy_mountains_light_v06.png"</span>
exec_always albert
<span class="token builtin class-name">exec</span> <span class="token builtin class-name">.</span> ~/.config/polybar/launch.sh
bindsym alt+space <span class="token builtin class-name">exec</span> albert</code></pre>
<p>相关阅读：</p>
<ul>
<li><a
target="_blank" rel="noopener" href="https://www.jianshu.com/p/fd07c3081493">在Archlinux中安装使用i3-gaps和polybar</a></li>
<li><a
target="_blank" rel="noopener" href="https://github.com/aeghn/prettyi3">一份极其优秀的i3配置-github</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.zhihu.com/question/62251457/answer/200683406">如何配置linux
平铺式窗口管理器i3wm？-知乎</a></li>
<li><a
target="_blank" rel="noopener" href="https://github.com/Kuari/i3-wm-config">我fork的i3配置-github</a></li>
<li><a
target="_blank" rel="noopener" href="https://github.com/sainathadapa/i3-wm-config">一份解释较为详细的i3配置教程</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.deviantart.com/tag/urxvt?offset=0&amp;page=1">优秀i3wm配置文件汇总</a></li>
</ul>
<h2 id="i3wm-联网">2.3 i3wm 联网</h2>
<p>当然可以直接往配置里面写密码，也可以在i3键入的终端<code>nmtui</code>，图形化配置<br />
建议还是下载一份network manager</p>
<p>相关阅读</p>
<ul>
<li><a
target="_blank" rel="noopener" href="https://www.cnblogs.com/pipci/p/12571469.html">nmtui网络配置命令</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.cnblogs.com/dengshihuang/p/8056716.html">使用文本用户界面（NMTUI）进行网络配置</a></li>
</ul>
<h2 id="polybar的安装与尝试使用example配置">2.4
Polybar的安装与尝试使用example配置</h2>
<p><strong>希望您可以吧example试着配置下来，如果可以处理好，使用自定义主题会如鱼得水</strong>
==想要获得更好的阅读体验，请点击<a
target="_blank" rel="noopener" href="https://blog.csdn.net/qq_33215865/article/details/84720212">链接</a>,我在原文的基础上未做修改==
&gt; 以下内容改自<a
target="_blank" rel="noopener" href="https://blog.csdn.net/qq_33215865/article/details/84720212">CSDN</a></p>
<p>如果不喜欢i3或者其他桌面系统的默认状态栏，polybar还是一个不错的选择。基本上，所有的流行的Linux发行版都可以用包管理器直接进行polybar的安装。ArchLinux可以使用yay或者其他AUR工具安装。</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">yay -S polybar-git</code></pre>
<h3 id="polybar的使用">Polybar的使用</h3>
<p>polybar的启动主要有2个文件，一个启动脚本和一个配置文件。<br />
配置文件可以使用其他人的配置，也可以使用官方的example示例。</p>
<h3 id="example示例使用">Example示例使用</h3>
<p>polaybar自带了example示例，让我们可以快速看到polybar的展示，并且可以在其基础上进行修改。exanple的config文件位于/esr/share/doc/polybar，如果是压缩文件我们需要先用bzip2命令进行解压。然后，我们就会获得config文件。</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">install</span> -Dm644 /usr/share/doc/polybar/config <span class="token environment constant">$HOME</span>/.config/polybar/config</code></pre>
<p>之后我们在$HOME/.config/polybar/config目录创建launch.sh文件
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">killall</span> -q polybar
<span class="token keyword">while</span> pgrep -u <span class="token environment constant">$UID</span> -x polybar <span class="token operator">></span>/dev/null<span class="token punctuation">;</span> <span class="token keyword">do</span> <span class="token function">sleep</span> <span class="token number">1</span><span class="token punctuation">;</span> <span class="token keyword">done</span>
polybar example</code></pre>
执行launch.sh文件，我们就会看到polybar成功显示在我们上方。<br />
之后我们需要开机自动启动，在桌面系统的配置文件中上运行launch.sh文件的命令就可以了们，以i3为例。</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">exec</span> <span class="token builtin class-name">.</span> ~/.config/polybar/launch.sh</code></pre>
<p>我们可以修改config文件进行属性的设定。example的状态栏会有留边，我们可以修改border-size属性来取消。
<pre class="language-bash" data-language="bash"><code class="language-bash">border-size <span class="token operator">=</span> <span class="token number">0</span>
border-color <span class="token operator">=</span> <span class="token comment">#00000000</span></code></pre> 遇到模块有问题，请使用<a
target="_blank" rel="noopener" href="https://github.com/polybar/polybar/wiki">gitgub项目的wiki</a>，还是不会推荐看<a
target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV17T4y1E7sc?from=search&amp;seid=15772182517967257125">这位Up的视频</a></p>
<h2 id="polybar的主题配置polybar-themes">2.5
Polybar的主题配置(polybar-themes)</h2>
<p>Polybar的主题可以自己定制，但是我懒，于是在github上找到两个不错的项目</p>
<ul>
<li><a
target="_blank" rel="noopener" href="https://github.com/Yucklys/polybar-nord-theme">一个Nord风格的Polybar</a></li>
<li><a
target="_blank" rel="noopener" href="https://github.com/adi1090x/polybar-themes">颇受欢迎的上千款样式大合集</a></li>
</ul>
<p>我选取了后者(因为多)<br />
如果你想自己一步一步来，<a
target="_blank" rel="noopener" href="https://guyueshui.github.io/post/polybar-%E7%9A%84%E9%85%8D%E7%BD%AE%E7%AC%94%E8%AE%B0/">参见此处</a></p>
<h3 id="主题下载">主题下载</h3>
<p>首先，你已经下好了polybar<br />
然后下载polybar的主题</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">cd</span> ~/.config
<span class="token function">git</span> clone https://github.com/adi1090x/polybar-themes.git</code></pre>
<p>然后在.config目录下就会有一个名为polybar-themes的文件夹</p>
<h3 id="配置字体">配置字体</h3>
<p>就会看到一共九个主题，每个主题下都有一个名为fonts的文件夹，想要使用哪个主题，先将主题的字体复制到你系统的字体文件夹下</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">cd</span> polybar-themes
<span class="token function">ls</span> -l</code></pre>
<h3 id="字体-1">字体</h3>
<p>我的字体目录是/usr/share/fonts/，我的ttf尾缀的字体在/usr/share/fonts/TTF/下，所以我将ttf字体复制到这里面，然后termsyn是个字体文件夹，直接放在fonts目录下即可，siji放在/usr/share/fonts/misc/下<br />
最后将原来的~/.config/polybar/这个目录改个名字，如果不需备份的话直接删除就好了</p>
<h3 id="以polybar-5为例">以polybar-5为例</h3>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">cp</span> -r ~/.config/polybar-themes/polybar-5 ~/.config/polybar</code></pre>
<p>接下来运行脚本</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token builtin class-name">cd</span> ~/.config/polybar/
./launsh.sh</code></pre>
<h3 id="配置polybar-5">配置(polybar-5)</h3>
<p>如果想更改标题栏顺序，可以在主题中config.ini中修改
建议将[bar/top]下</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">modules-left <span class="token operator">=</span> menu title right-end-top left-end-bottom workspaces right-end-top left-end-bottom colors-switch right-end-top</code></pre>
<p>改为</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">modules-left <span class="token operator">=</span> menu workspaces right-end-top left-end-bottom colors-switch right-end-top left-end-bottom title right-end-top</code></pre>
<p>用起来感觉好些</p>
<p>如果要更改左上角菜单栏中Files，Terminal等的程序，可以在主题下user_modules.ini中[module/menu]下更改</p>
<p>解决polybar显示不了中文 打开主题目录下config.ini，将</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">font-0 <span class="token operator">=</span> Iosevka Nerd Font:style<span class="token operator">=</span>Medium:size<span class="token operator">=</span><span class="token number">14</span><span class="token punctuation">;</span><span class="token number">3</span></code></pre>
<p>改为</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">font-0 <span class="token operator">=</span> unifont:style<span class="token operator">=</span>Medium:size<span class="token operator">=</span><span class="token number">14</span><span class="token punctuation">;</span><span class="token number">3</span></code></pre>
<p>当然也可以下载其他支持中文的字体</p>
<p>我用的i3wm所以它的右上角powermenu菜单中logout用不了<br />
首先下载i3exit</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token function">sudo</span> pacman -S i3exit</code></pre>
<p>然后更改主题文件夹下scripts/powermenu，将</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">*Logout<span class="token punctuation">)</span> openbox --exit <span class="token punctuation">;</span><span class="token punctuation">;</span></code></pre>
<p>改为</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">*Logout<span class="token punctuation">)</span> i3exit <span class="token builtin class-name">logout</span> <span class="token punctuation">;</span><span class="token punctuation">;</span></code></pre>
<h2 id="应用polybar-themes主题时的一些经验之谈">2.6
应用polybar-themes主题时的一些经验之谈</h2>
<ol type="1">
<li><p>字体
<strong>siji那个字体一定要用polybar-themes上下载下来的那个版本</strong><br />
<strong>要关闭系统对于位图字体的禁止(前文有讲)</strong><br />
上文的建议时进行字体拷贝，但是，如果你使用的时KDE桌面，那么可以这样:
设置 - 字体 - 字体管理 - 系统字体 -
从文件安装。这样所有有问题的字体都会弹出错误提示，进而解决 <img
src="https://img-blog.csdnimg.cn/202008172317016.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p></li>
<li><p>调试的方法，直接进i3去修改时很麻烦的，我建议在KDE下操作，找到对应的launch.sh
找到他运行
ploybar的那个命令，在KED的终端运行，这样他不仅会显示报错信息，还可以Ctrl+C停止，改配置，直接重新进入polyvar</p></li>
<li><p>模块的问题： 首先建议安装rofi(从添加/删除软件那里就可以找到)
出现Error开头的说明模块有问题，例如 <pre class="language-bash" data-language="bash"><code class="language-bash">error: Disabling module <span class="token string">"battery"</span> <span class="token punctuation">..</span>.</code></pre>
我们可以看到是<code>battery</code>出了问题，于是去<a
target="_blank" rel="noopener" href="https://github.com/polybar/polybar/wiki">github-polybar-wiki</a>找解决方案，
<img
src="https://img-blog.csdnimg.cn/20200817233203346.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" />
照猫画虎就可以解决其他的了，实在解决不了，报错信息直接<strong>谷歌</strong>，百
度 太 坑</p></li>
<li><p>一定记得吧polybar加入i3自启，然后删除自带状态栏</p></li>
</ol>
<p>相关阅读<a target="_blank" rel="noopener" href="https://awesomeopensource.com/projects/polybar">The
Top 26 Polybar Open Source Projects</a></p>
<h2 id="mpd的配置">2.7 mpd的配置</h2>
<p>==想要获得更好的阅读体验，请点击<a
target="_blank" rel="noopener" href="https://blog.fooleap.org/installation-and-configuration-mpd.html">链接</a>,我在原文的基础上略做修改==
&gt; 以下内容改自<a
target="_blank" rel="noopener" href="https://blog.fooleap.org/installation-and-configuration-mpd.html">个人博客</a></p>
<p>使用 i3 窗口管理器，感觉很舒服，更有帅帅的 i3status 点缀之，在 GitHub
搜了下，发现有个i3status 修改版[1]，可以显示 MPD 的播放状态，于是又用起
MPD。</p>
<p>MPD [2] 是一个实用的音乐播放器，以其独特的 C/S
结构获得人们的喜爱。充其量 MPD
只是作为一个守护进程（或者可以说服务）运行于后台，想要控制它的播放，还需要一个客户端，一般只选用
MPC (Music Player Command)， MPC 虽为命令行客户端，但已够用。</p>
<p>下面一起来安装配置 MPD，获得恰到好处的使用体验 ### MPD 安装 MPD,
MPC</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token comment"># pacman -S mpd mpc</span></code></pre>
<p>创建 MPD 的配置文件~/.config/mpd/.mpdconf</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">music_directory         <span class="token string">"~/Music/"</span>
playlist_directory      <span class="token string">"~/.mpd/playlists"</span>
db_file                 <span class="token string">"~/.mpd/database"</span>
log_file                <span class="token string">"~/.mpd/log"</span>
pid_file                <span class="token string">"~/.mpd/pid"</span>
state_file              <span class="token string">"~/.mpd/state"</span>
bind_to_address         <span class="token string">"127.0.0.1"</span>
port                    <span class="token string">"6600"</span>
audio_output <span class="token punctuation">&#123;</span>
	<span class="token builtin class-name">type</span>            <span class="token string">"alsa"</span>
	name            <span class="token string">"My ALSA Device"</span>
	mixer_control   <span class="token string">"Master"</span>
<span class="token punctuation">&#125;</span></code></pre>
<p>更多配置可参考 <code>/usr/share/mpd/mpd.conf.example</code></p>
<pre class="language-bash" data-language="bash"><code class="language-bash">$ <span class="token function">mkdir</span> -p ~/.mpd/playlists
$ <span class="token function">touch</span> ~/.mpd/<span class="token punctuation">&#123;</span>database,log,pid,state<span class="token punctuation">&#125;</span></code></pre>
<p>至此，可直接运行 mpd 命令以启动</p>
<p>通过 systemd 设置自启，默认配置不是普通用户的，遂先修改 mpd.service
文件，指定配置/usr/lib/systemd/system/mpd.service</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token punctuation">..</span>.
<span class="token punctuation">[</span>Service<span class="token punctuation">]</span>
<span class="token assign-left variable">ExecStart</span><span class="token operator">=</span>/usr/bin/mpd /home/fooleap/.mpdconf --no-daemon
<span class="token punctuation">..</span>.
<span class="token comment"># systemctl enable mpd</span></code></pre>
<h3 id="均衡器">均衡器</h3>
<p>播放器是有了，但 MPD 不带均衡器，在此使用 Alsaequal[3] 充当均衡器</p>
<p>安装</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">$ yaourt -S alsaequal caps</code></pre>
<p>配置~/.asoundrc</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">ctl.equal <span class="token punctuation">&#123;</span>
 <span class="token builtin class-name">type</span> equal<span class="token punctuation">;</span>
<span class="token punctuation">&#125;</span>

pcm.plugequal <span class="token punctuation">&#123;</span>
  <span class="token builtin class-name">type</span> equal<span class="token punctuation">;</span>
  <span class="token comment"># Modify the line below if you do not</span>
  <span class="token comment"># want to use sound card 0.</span>
  <span class="token comment">#slave.pcm "plughw:0,0";</span>
  <span class="token comment">#by default we want to play from more sources at time:</span>
  slave.pcm <span class="token string">"plug:dmix"</span><span class="token punctuation">;</span>
<span class="token punctuation">&#125;</span>
<span class="token comment">#pcm.equal &#123;</span>
  <span class="token comment"># If you don't want the equalizer to be your</span>
  <span class="token comment"># default soundcard comment the following</span>
  <span class="token comment"># line and uncomment the above line. (You can</span>
  <span class="token comment"># choose it as the output device by addressing</span>
  <span class="token comment"># it with specific apps,eg mpg123 -a equal 06.Back_In_Black.mp3)</span>
pcm.<span class="token operator">!</span>default <span class="token punctuation">&#123;</span>
  <span class="token builtin class-name">type</span> plug<span class="token punctuation">;</span>
  slave.pcm plugequal<span class="token punctuation">;</span>
<span class="token punctuation">&#125;</span></code></pre>
<p>重启 Alsa 后，可调整增益值</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">$ alsamixer -D equal</code></pre>
<p>~/.mpdconf <pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token punctuation">..</span>.
audio_output <span class="token punctuation">&#123;</span>
  <span class="token builtin class-name">type</span>    <span class="token string">"alsa"</span>
  name    <span class="token string">"My ALSA Device"</span>
  device  <span class="token string">"plug:plugequal"</span>
  mixer_control	<span class="token string">"Master"</span>		<span class="token comment"># optional</span>
<span class="token punctuation">&#125;</span>
<span class="token punctuation">..</span>.</code></pre> <img
src="https://img-blog.csdnimg.cn/20200818002230485.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></p>
<h3 id="mpc">MPC</h3>
<p>尝试播放</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">$ mpc listall <span class="token operator">|</span> mpc <span class="token function">add</span>
$ mpc play</code></pre>
<p>添加所有音乐到当前播放列表</p>
<ul>
<li>播放</li>
<li>播放列表</li>
</ul>
<p>通过 MPC 创建的是 *.m3u 格式的 Playlist</p>
<p>假设 ~/Music
文件夹里有多个文件夹，创建播放列表，包含某目录（或多目录）下所有音乐</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">$ mpc <span class="token function">clear</span>
$ mpc <span class="token function">ls</span>
$ mpc listall FolderName1 FolderName2 <span class="token punctuation">..</span> <span class="token operator">|</span> mpc <span class="token function">add</span>
$ mpc save playlist
$ mpc load playlist</code></pre>
<p>清空当前播放列表<br />
列出文件夹<br />
显示名字为 FolderName1 FolderName2
文件夹下的所有音乐并添加到当前播放列表<br />
保存当前播放列表为 playlist<br />
读取播放列表 playlist<br />
也可以通过类似下面的命令来创建播放列表，萝卜青菜</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">$ <span class="token builtin class-name">cd</span> ~/Music
$ <span class="token function">find</span> * -iname <span class="token string">"*.mp3"</span> <span class="token operator">|</span> <span class="token function">sort</span> <span class="token operator">|</span> <span class="token function">grep</span> Keyword <span class="token operator">></span> ~/.mpd/playlist/playlist.m3u</code></pre>
<p>更多使用可以参考 man mpc</p>
<h3 id="多媒体键">多媒体键</h3>
<p>使用 Thinkpad 多媒体键来代替常用的 mpc 命令再合适不过，这里通过
Xbindkeys[4] 来绑定</p>
<p>安装 Xbindkeys</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token comment"># pacman -S xbindkeys</span></code></pre>
<p>配置 Xbindkeys ~/.xbindkeysrc</p>
<pre class="language-bash" data-language="bash"><code class="language-bash"><span class="token string">"mpc toggle"</span>
XF86AudioPlay

<span class="token string">"mpc stop"</span>
XF86AudioStop

<span class="token string">"mpc prev"</span>
XF86AudioPrev

<span class="token string">"mpc next"</span>
XF86AudioNext

<span class="token string">"amixer sset Master 2-"</span>
XF86AudioLowerVolume

<span class="token string">"amixer sset Master 2+"</span>
XF86AudioRaiseVolume

<span class="token string">"amixer sset Master toggle"</span>
XF86AudioMute</code></pre>
<p>将 xbindkeys &amp; 添加到 ~/.xinitrc 使其随 X 启动</p>
<h3 id="键映射">键映射</h3>
<p>在此之前，可能需要通过 Xmodmap[5] 修改键映射</p>
<pre class="language-bash" data-language="bash"><code class="language-bash">~/.Xmodmap
<span class="token operator">!</span>Media
keycode <span class="token number">173</span> <span class="token operator">=</span> XF86AudioPrev
keycode <span class="token number">172</span> <span class="token operator">=</span> XF86AudioPlay
keycode <span class="token number">171</span> <span class="token operator">=</span> XF86AudioNext
keycode <span class="token number">174</span> <span class="token operator">=</span> XF86AudioStop

<span class="token operator">!</span>Volume
keycode <span class="token number">121</span> <span class="token operator">=</span> XF86AudioMute
keycode <span class="token number">122</span> <span class="token operator">=</span> XF86AudioLowerVolume
keycode <span class="token number">123</span> <span class="token operator">=</span> XF86AudioRaiseVolume</code></pre>
<p>将 xmodmap ~/.Xmodmap &amp; 添加到 ~/.xinitrc 使其随 X 启动</p>
<p>相关阅读 <a
target="_blank" rel="noopener" href="https://forum.archlabslinux.com/t/fix-mpd-on-polybar/1861/8">Fix
MPD on polybar</a></p>
<h2 id="新终端">2.8 新终端</h2>
<p>感觉Konsole挺好的，那天再说</p>
<h1 id="备份您的文件dotfile项目">3.备份您的文件(dotfile项目)</h1>
<p>由于在Linux下大部分文件都是<code>.XXXrc</code>,有人叫他<code>dotfile</code></p>
<blockquote>
<p>以下转自<a target="_blank" rel="noopener" href="https://www.jianshu.com/p/7UJapk">简书</a></p>
</blockquote>
<ol type="1">
<li>dotfiles是什么？<br />
我自己的理解:linux下有各种app，每个人会根据自己的喜好和习惯来设置一些（快捷键，变量等等），而dotfiles就是保存了这些自定义设置的文件，如果换一台电脑，只要你备份了dotfiles文件，一样可以快速回归到自己熟悉的设置。</li>
<li>如何使用dotfiles?
我自己的理解：a.在系统中使用一个文件夹，通过ln命令，将不同的app，不同的系统设置文件都指引到这个文件夹，这样就可以在这个文件夹管理所有的系统app
setting了？。</li>
<li>进阶
既然都统一到了一个文件夹，那么，就可以通过git，dropbox来进行备份，分享，也可以clone下其他人的dotfiles。</li>
</ol>
<p>不知道自己的理解有没有错，话说中文基本没有入门教程，英文也就是github的那个和一些使用dropbox来备份的。
<a target="_blank" rel="noopener" href="https://github.com/zzuse/dotfiles">项目的github地址</a></p>
<h1 id="优雅的清除manjaro双系统用户">4.
优雅的清除Manjaro(双系统用户)</h1>
<p>当你准备重装或者删除Manjaro的时候您需要进行以下操作以保证没有残留</p>
<ol type="1">
<li>右击计算机 - 管理 - 存储磁盘 - 选择manjaro分区选择删除卷 -
直到如图删除manjaro全部分区 <img
src="https://img-blog.csdnimg.cn/20200818020118975.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> <img
src="https://img-blog.csdnimg.cn/20200818020039716.png#pic_center"
alt="在这里插入图片描述" /></li>
<li>安装esayuefi(免费软件)用来删除manjaro的启动项<img
src="https://img-blog.csdnimg.cn/20200818020231510.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /> 看到有两个<img
src="https://img-blog.csdnimg.cn/20200818020409644.png#pic_center"
alt="在这里插入图片描述" /> 找到一个详细信息有manjaro的 <img
src="https://img-blog.csdnimg.cn/20200818020449746.png#pic_center"
alt="在这里插入图片描述" /> 选中 - 禁用 - 删除 - 重启
<strong>如果还是不行</strong></li>
</ol>
<ol type="a">
<li>下载分区助手 - 找到EFI分区 - 分配盘符 - 以管理员方式运行记事本 -
打开文件 - 进入EFI分区 - 选中Manjaro 文件夹 - 删除 <img
src="https://img-blog.csdnimg.cn/20200818020930402.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xpdWthaXJ1aQ==,size_16,color_FFFFFF,t_70#pic_center"
alt="在这里插入图片描述" /></li>
<li>去BIOS设置删除有问题的启动项或者把有问题的启动项放最后</li>
</ol>
<h1 id="优秀的教程网站与视频">优秀的教程网站与视频</h1>
<ul>
<li><a
target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/114296129">Manjaro-KDE配置全攻略</a></li>
<li><a
target="_blank" rel="noopener" href="https://sspai.com/post/55699">自由输入法RIME简明配置指南</a></li>
<li><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/300bbe1602d4">Rime
导入搜狗词库</a></li>
<li><a
target="_blank" rel="noopener" href="https://github.com/romkatv/powerlevel10k">powerlevel10k主题</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.reddit.com/r/kde/comments/8g97n7/how_to_add_themes_from_httpsstorekdeorg/">手动导入KDE主题</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.cnblogs.com/zenPger/archive/2011/05/25/2057188.html">“要解锁，请输入默认密钥环的密码”的解决办法</a></li>
<li><a
target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_44405279/article/details/104123282">【最全】manjaro
pacman及其数字签名问题解决</a></li>
<li><a
target="_blank" rel="noopener" href="http://8u.hn.cn/Linuxmingling/13084.html">教你在Linux终端中键入密码时显示星号（*）的办法</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.jianshu.com/p/b9b644cf528f">i3wm的使用说明</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.zhihu.com/question/62251457/answer/200683406">如何配置linux
平铺式窗口管理器i3wm？-知乎</a></li>
<li><a
target="_blank" rel="noopener" href="https://github.com/Kuari/i3-wm-config">我fork的i3配置-github</a></li>
<li><a
target="_blank" rel="noopener" href="https://github.com/sainathadapa/i3-wm-config">一份解释较为详细的i3配置教程</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.deviantart.com/tag/urxvt?offset=0&amp;page=1">优秀i3wm配置汇总网站</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.cnblogs.com/pipci/p/12571469.html">nmtui网络配置命令</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.cnblogs.com/dengshihuang/p/8056716.html">使用文本用户界面（NMTUI）进行网络配置</a></li>
<li><a
target="_blank" rel="noopener" href="https://blog.csdn.net/qq_33215865/article/details/84720212">polybar基础使用</a></li>
<li><a
target="_blank" rel="noopener" href="https://github.com/Yucklys/polybar-nord-theme">一个Nord风格的Polybar</a></li>
<li><a
target="_blank" rel="noopener" href="https://github.com/adi1090x/polybar-themes">颇受欢迎的上千款样式大合集Polybar主题</a></li>
<li><a
target="_blank" rel="noopener" href="https://guyueshui.github.io/post/polybar-%E7%9A%84%E9%85%8D%E7%BD%AE%E7%AC%94%E8%AE%B0/">PolyBar手动配置笔记</a></li>
<li><a target="_blank" rel="noopener" href="https://awesomeopensource.com/projects/polybar">The Top 26
Polybar Open Source Projects</a></li>
<li><a
target="_blank" rel="noopener" href="https://blog.fooleap.org/installation-and-configuration-mpd.html">安装和配置
MPD</a></li>
<li><a
target="_blank" rel="noopener" href="https://forum.archlabslinux.com/t/fix-mpd-on-polybar/1861/8">Fix
MPD on polybar</a></li>
<li><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/7UJapk">dotfiles新手教程</a></li>
<li><a
target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV17T4y1E7sc?from=search&amp;seid=15772182517967257125">bilibili-66RINGpolybar的简单基本配置和如何使用官方文档</a></li>
<li><a
target="_blank" rel="noopener" href="https://space.bilibili.com/13081489?from=search&amp;seid=1960259514159989618">UP主TheCW</a></li>
<li><a
target="_blank" rel="noopener" href="https://space.bilibili.com/43806321?from=search&amp;seid=1960259514159989618">UP主紫色妖姬半岛</a></li>
</ul>
<hr />
<p>完结撒花</p>

    </div>

    
    
    
      


    <footer class="post-footer">
          <div class="reward-container">
  <div></div>
  <button>
    赞赏
  </button>
  <div class="post-reward">
      <div>
        <img src="/images/wechatpay.png" alt="Liu Kairui 微信">
        <span>微信</span>
      </div>
      <div>
        <img src="/images/alipay.png" alt="Liu Kairui 支付宝">
        <span>支付宝</span>
      </div>

  </div>
</div>

          

<div class="post-copyright">
<ul>
  <li class="post-copyright-author">
      <strong>本文作者： </strong>Liu Kairui
  </li>
  <li class="post-copyright-link">
      <strong>本文链接：</strong>
      <a href="http://liukairui.me/article/Manjaro-KDE-i3wm-PolyBar%E4%BD%BF%E7%94%A8%E9%85%8D%E7%BD%AE%E5%85%A8%E6%8C%87%E5%8D%97/" title="Manjaro - KDE - i3wm - PolyBar 配置笔记">http://liukairui.me/article/Manjaro-KDE-i3wm-PolyBar使用配置全指南/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" rel="noopener" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>

          <div class="post-tags">
              <a href="/tags/Linux/" rel="tag"><i class="fa fa-tag"></i> Linux</a>
              <a href="/tags/Manjaro/" rel="tag"><i class="fa fa-tag"></i> Manjaro</a>
              <a href="/tags/KDE/" rel="tag"><i class="fa fa-tag"></i> KDE</a>
              <a href="/tags/i3wm/" rel="tag"><i class="fa fa-tag"></i> i3wm</a>
              <a href="/tags/PolyBar/" rel="tag"><i class="fa fa-tag"></i> PolyBar</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/article/Vim%E9%85%8D%E7%BD%AE%E7%AC%94%E8%AE%B0(%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE,%E6%8F%92%E4%BB%B6%E6%8E%A8%E8%8D%90,%E7%BE%8E%E5%8C%96)(C++,Python,MarkDown,R...)/" rel="prev" title="Vim配置笔记(环境配置,插件推荐,美化)(C++,Python,MarkDown,R...)">
                  <i class="fa fa-chevron-left"></i> Vim配置笔记(环境配置,插件推荐,美化)(C++,Python,MarkDown,R...)
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/article/Less%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" rel="next" title="Less学习笔记">
                  Less学习笔记 <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






    <div class="comments" id="valine-comments"></div>
</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 2019 – 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Liu Kairui</span>
</div>
<div class="busuanzi-count">
    <span class="post-meta-item" id="busuanzi_container_site_uv">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-item" id="busuanzi_container_site_pv">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/muse/" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
  </div>
  <div class="addthis_inline_share_toolbox">
    <script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-6231eb6f709fc868" async="async"></script>
  </div><script
  async
  src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"
></script>

 
<script src="https://cdn.jsdelivr.net/npm/moment@2.22.2/moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/moment-precise-range-plugin@1.3.0/moment-precise-range.min.js"></script>
<script>
  function timer() {
    var ages = moment.preciseDiff(moment(),moment(20201101,"YYYYMMDD"));
    ages = ages.replace(/years?/, "年");
    ages = ages.replace(/months?/, "月");
    ages = ages.replace(/days?/, "天");
    ages = ages.replace(/hours?/, "小时");
    ages = ages.replace(/minutes?/, "分");
    ages = ages.replace(/seconds?/, "秒");
    ages = ages.replace(/\d+/g, '<span class="daysCnt" style="color:#1890ff">$&</span>');
    div.innerHTML = `我已在此等候你 ${ages}`;
    div.className="workDays";
  }
  var div = document.createElement("div");
  //插入到copyright之后
  var copyright = document.querySelector(".copyright");
  document.querySelector(".footer-inner").insertBefore(div, copyright.nextSibling);
  timer();
  setInterval("timer()",1000)
</script>



    </div>
  </footer>

  
  <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/@next-theme/pjax@0.5.0/pjax.min.js" integrity="sha256-3NkoLDrmHLTYj7csHIZSr0MHAFTXth7Ua/DDt4MRUAg=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js" integrity="sha256-yt2kYMy0w8AbtF89WXb2P1rfjcP/HTHLT7097U8Y5b8=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/lozad.js/1.16.0/lozad.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/pangu/4.0.7/pangu.min.js"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/schemes/muse.js"></script><script src="/js/next-boot.js"></script><script src="/js/pjax.js"></script>

  
<script src="https://cdn.jsdelivr.net/npm/hexo-generator-searchdb@1.4.0/dist/search.js" integrity="sha256-vXZMYLEqsROAXkEw93GGIvaB2ab+QW6w3+1ahD9nXXA=" crossorigin="anonymous"></script>
<script src="/js/third-party/search/local-search.js"></script>


  <script class="next-config" data-name="mermaid" type="application/json">{"enable":true,"theme":"forest","js":{"url":"https://cdnjs.cloudflare.com/ajax/libs/mermaid/8.14.0/mermaid.min.js","integrity":"sha256-7wT34TI0pEBeEFoi4z+vhuSddGh6vUTMWdqJ2SDe2jg="}}</script>
  <script src="/js/third-party/tags/mermaid.js"></script>

  <script src="/js/third-party/fancybox.js"></script>

  <script src="/js/third-party/pace.js"></script>

  
  <script data-pjax async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>


  <script class="next-config" data-name="leancloud_visitors" type="application/json">{"enable":true,"app_id":"ABKlVtS4cyaWYEwunPyK3sXt-9Nh9j0Va","app_key":"xxGXdTTEGEVifs2TLB35844I","server_url":"https://abklvts4.lc-cn-e1-shared.com","security":false}</script>
  <script src="/js/third-party/statistics/lean-analytics.js"></script>


  

  <script class="next-config" data-name="enableMath" type="application/json">true</script><script class="next-config" data-name="mathjax" type="application/json">{"enable":true,"tags":"none","mhchem":true,"js":{"url":"https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.0/es5/tex-mml-chtml.min.js"}}</script>
<script src="/js/third-party/math/mathjax.js"></script>


  <script src="https://cdnjs.cloudflare.com/ajax/libs/quicklink/2.2.0/quicklink.umd.js" integrity="sha256-4kQf9z5ntdQrzsBC3YSHnEz02Z9C1UeW/E9OgnvlzSY=" crossorigin="anonymous"></script>
  <script class="next-config" data-name="quicklink" type="application/json">{"enable":true,"home":false,"archive":false,"delay":true,"timeout":3000,"priority":true,"url":"http://liukairui.me/article/Manjaro-KDE-i3wm-PolyBar%E4%BD%BF%E7%94%A8%E9%85%8D%E7%BD%AE%E5%85%A8%E6%8C%87%E5%8D%97/"}</script>
  <script src="/js/third-party/quicklink.js"></script>
<script src="https://cdn.jsdelivr.net/npm/darkmode-js@1.5.7/lib/darkmode-js.min.js"></script>

<script>
var options = {
  bottom: '64px',
  right: 'unset',
  left: '32px',
  time: '0.5s',
  mixColor: 'transparent',
  backgroundColor: 'transparent',
  buttonColorDark: '#100f2c',
  buttonColorLight: '#fff',
  saveInCookies: true,
  label: '🌓',
  autoMatchOsTheme: true
}
const darkmode = new Darkmode(options);
window.darkmode = darkmode;
darkmode.showWidget();
</script>


<script class="next-config" data-name="valine" type="application/json">{"enable":true,"appId":"ABKlVtS4cyaWYEwunPyK3sXt-9Nh9j0Va","appKey":"xxGXdTTEGEVifs2TLB35844I","serverURLs":"https://abklvts4.lc-cn-e1-shared.com","placeholder":"请开始你的表演","avatar":"identicon","meta":["nick","mail","link"],"pageSize":10,"lang":"zh-CN","visitor":false,"comment_count":true,"recordIP":true,"enableQQ":true,"requiredFields":[],"el":"#valine-comments","path":"/article/Manjaro-KDE-i3wm-PolyBar%E4%BD%BF%E7%94%A8%E9%85%8D%E7%BD%AE%E5%85%A8%E6%8C%87%E5%8D%97/"}</script>
<script>
document.addEventListener('page:loaded', () => {
  NexT.utils.loadComments(CONFIG.valine.el)
    .then(() => NexT.utils.getScript(
      'https://cdn.jsdelivr.net/npm/valine@1.4.14/dist/Valine.min.js',
      { condition: window.Valine }
    ))
    .then(() => {
      new Valine(CONFIG.valine);
    });
});
</script>


  <script async src="/js/fireworks.js"></script>




  <script src="/js/activate-power-mode.min.js"></script>
  <script>
    POWERMODE.colorful = true;
    POWERMODE.shake = false;
    document.body.addEventListener('input', POWERMODE);
  </script>




  <script src="/js/wobblewindow.js"></script>
  <script>
    //只在桌面版网页启用特效 记得同步到header.njk
    if( window.innerWidth > 768  ){
      $(document).ready(function () {
        
          $('body>main>header').wobbleWindow({
            radius: 50,
            movementTop: false,
            movementLeft: false,
            movementRight: false,
            debug: false,
          });
        

        //
        //  $('body header>aside').wobbleWindow({
        //    radius: 50,
        //    movementLeft: false,
        //    movementTop: false,
        //    movementBottom: false,
        //    position: 'fixed',
        //    debug: false,
        //  });
        //

        
          $('body>footer').wobbleWindow({
            radius: 50,
            movementBottom: false,
            movementLeft: false,
            movementRight: false,
            debug: false,
          });
        
      });
    }
  </script>


 
<script>
  $(document).ready(function(){
    var beian = document.querySelector(".footer-inner > .beian > a");
    var cpr=document.querySelector(".footer-inner > .copyright");
    var cnz=document.querySelector(".workDays");//.parentNode;
    var bsz=document.querySelector(".busuanzi-count");
    if(cnz!=null&&bsz!=null)
      cnz.parentNode.insertBefore(bsz,cnz);
    if(bsz == null || bsz == undefined || document.querySelector("#busuanzi_value_site_pv").innerText=="" || document.querySelector("#busuanzi_value_site_uv").innerText == "")
      bsz.remove();
    checkIndex();
    if(beian){cpr.classList.add('split-line');cpr.appendChild(beian);}
  })
  $(document).on('pjax:complete',checkIndex);
</script>



<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"log":false,"model":{"jsonPath":"/live2dw/assets/hijiki.model.json"},"display":{"position":"right","width":150,"height":300},"mobile":{"show":false},"react":{"opacity":0.7}});</script></body>
</html>
